Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for once (0.14 sec)

  1. src/cmd/cgo/doc.go

    What happens at link time depends on whether the final binary is linked
    using the internal or external mode. If other packages are compiled in
    "external only" mode, then the final link will be an external one.
    Otherwise the link will be an internal one.
    
    The linking directives are used according to the kind of final link
    used.
    
    In internal mode, cmd/link itself processes all the host object files, in
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  2. src/cmd/addr2line/addr2line_test.go

    		addr2lineExePath, addr2linePathErr = os.Executable()
    	})
    	if addr2linePathErr != nil {
    		t.Fatal(addr2linePathErr)
    	}
    	return addr2lineExePath
    }
    
    var (
    	addr2linePathOnce sync.Once
    	addr2lineExePath  string
    	addr2linePathErr  error
    )
    
    func loadSyms(t *testing.T, dbgExePath string) map[string]string {
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "tool", "nm", dbgExePath)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 22:16:54 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/archive/zip/reader_test.go

    	}
    	corrupter(data)
    	return bytes.NewReader(data), int64(len(data))
    }
    
    func returnCorruptCRC32Zip() (r io.ReaderAt, size int64) {
    	return messWith("go-with-datadesc-sig.zip", func(b []byte) {
    		// Corrupt one of the CRC32s in the data descriptor:
    		b[0x2d]++
    	})
    }
    
    func returnCorruptNotStreamedZip() (r io.ReaderAt, size int64) {
    	return messWith("crc32-not-streamed.zip", func(b []byte) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  6. src/bytes/bytes.go

    	// is too large we are basically just thrashing the CPU D-cache.
    	// So if the result length is larger than an empirically-found
    	// limit (8KB), we stop growing the source string once the limit
    	// is reached and keep reusing the same source string - that
    	// should therefore be always resident in the L1 cache - until we
    	// have completed the construction of the result.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  7. 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)
  8. src/archive/tar/common.go

    func (s sparseEntry) endOffset() int64 { return s.Offset + s.Length }
    
    // A sparse file can be represented as either a sparseDatas or a sparseHoles.
    // As long as the total size is known, they are equivalent and one can be
    // converted to the other form and back. The various tar formats with sparse
    // file support represent sparse files in the sparseDatas form. That is, they
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  9. doc/godebug.md

    because it documents the full list of known GODEBUG settings,
    which are tied to a specific release.
    -->
    
    ## Introduction {#intro}
    
    Go's emphasis on backwards compatibility is one of its key strengths.
    There are, however, times when we cannot maintain complete compatibility.
    If code depends on buggy (including insecure) behavior,
    then fixing the bug will break that code.
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  10. doc/next/6-stdlib/1-time.md

    The main effect of this change is that Go now guarantees
    that for any call to a `Reset` or `Stop` method, no stale values
    prepared before that call will be sent or received after the call.
    Earlier versions of Go used channels with a one-element buffer,
    making it difficult to use `Reset` and `Stop` correctly.
    A visible effect of this change is that `len` and `cap` of timer channels
    now returns 0 instead of 1, which may affect programs that
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 1.5K bytes
    - Viewed (0)
Back to top