- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for exits (0.22 sec)
-
doc/go_mem.html
t.msg = "hello, world" g = t } func main() { go setup() for g == nil { } print(g.msg) } </pre> <p> Even if <code>main</code> observes <code>g != nil</code> and exits its loop, there is no guarantee that it will observe the initialized value for <code>g.msg</code>. </p> <p> In all these examples, the solution is the same: use explicit synchronization. </p>
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Mon Mar 04 15:54:42 GMT 2024 - 26.6K bytes - Viewed (0) -
doc/go1.17_spec.html
<pre> func main() { … } </pre> <p> Program execution begins by initializing the main package and then invoking the function <code>main</code>. When that function invocation returns, the program exits. It does not wait for other (non-<code>main</code>) goroutines to complete. </p> <h2 id="Errors">Errors</h2> <p> The predeclared type <code>error</code> is defined as </p> <pre>
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
doc/asm.html
are many examples in the sources of the standard library, in packages such as <a href="/pkg/runtime/"><code>runtime</code></a> and <a href="/pkg/math/big/"><code>math/big</code></a>. You can also examine what the compiler emits as assembly code (the actual output may differ from what you see here): </p> <pre> $ cat x.go package main func main() { println(3) }
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Tue Nov 28 19:15:27 GMT 2023 - 36.3K bytes - Viewed (0) -
doc/go_spec.html
<p> Program execution begins by <a href="#Program_initialization">initializing the program</a> and then invoking the function <code>main</code> in package <code>main</code>. When that function invocation returns, the program exits. It does not wait for other (non-<code>main</code>) goroutines to complete. </p> <h2 id="Errors">Errors</h2> <p> The predeclared type <code>error</code> is defined as </p> <pre>
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu May 02 22:43:51 GMT 2024 - 279.6K bytes - Viewed (0)