- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for once (0.13 sec)
-
doc/go_mem.html
<p class="rule"> The completion of a single call of <code>f()</code> from <code>once.Do(f)</code> is synchronized before the return of any call of <code>once.Do(f)</code>. </p> <p> In this program: </p> <pre> var a string var once sync.Once func setup() { a = "hello, world" } func doprint() { once.Do(setup) print(a) } func twoprint() { go doprint()
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
one iteration variable is permitted, otherwise there may be up to two. If the last iteration variable is the <a href="#Blank_identifier">blank identifier</a>, the range clause is equivalent to the same clause without that identifier. </p> <p> The range expression <code>x</code> is evaluated once before beginning the loop, with one exception: if at most one iteration variable is present and
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
If you need to use a missing instruction, there are two ways to proceed. One is to update the assembler to support that instruction, which is straightforward but only worthwhile if it's likely the instruction will be used again. Instead, for simple one-off cases, it's possible to use the <code>BYTE</code> and <code>WORD</code> directives
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
stands for one item (parameter or result) of the specified type and all non-<a href="#Blank_identifier">blank</a> names in the signature must be <a href="#Uniqueness_of_identifiers">unique</a>. If absent, each type stands for one item of that type. Parameter and result lists are always parenthesized except that if there is exactly one unnamed result it may be written as an unparenthesized type.
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)