sync.Once.Do (method)
83 uses
sync (current package)
once.go#L50: func (o *Once) Do(f func()) {
oncefunc.go#L32: once.Do(g)
oncefunc.go#L62: once.Do(g)
oncefunc.go#L94: once.Do(g)
compress/flate
inflate.go#L767: fixedOnce.Do(func() {
context
context.go#L322: a.once.Do(func() {
context.go#L347: a.once.Do(func() {
crypto/des
block.go#L218: feistelBoxOnce.Do(initFeistelBox)
crypto/ecdh
ecdh.go#L162: k.publicKeyOnce.Do(func() {
crypto/ecdsa
ecdsa.go#L620: p224Once.Do(func() {
ecdsa.go#L633: p256Once.Do(func() {
ecdsa.go#L646: p384Once.Do(func() {
ecdsa.go#L659: p521Once.Do(func() {
crypto/elliptic
elliptic.go#L241: initonce.Do(initAll)
elliptic.go#L254: initonce.Do(initAll)
elliptic.go#L266: initonce.Do(initAll)
elliptic.go#L278: initonce.Do(initAll)
crypto/internal/edwards25519
scalarmult.go#L12: basepointTablePrecomp.initOnce.Do(func() {
scalarmult.go#L128: basepointNafTablePrecomp.initOnce.Do(func() {
crypto/internal/nistec
p224.go#L114: _p224BOnce.Do(func() {
p224.go#L393: p224GeneratorTableOnce.Do(func() {
p224_sqrt.go#L27: p224GGOnce.Do(func() {
p384.go#L114: _p384BOnce.Do(func() {
p384.go#L393: p384GeneratorTableOnce.Do(func() {
p521.go#L114: _p521BOnce.Do(func() {
p521.go#L393: p521GeneratorTableOnce.Do(func() {
crypto/internal/randutil
randutil.go#L26: closedChanOnce.Do(func() {
crypto/x509
cert_pool.go#L240: lazyCert.Do(func() {
root.go#L31: once.Do(initSystemRoots)
hash/crc32
crc32.go#L127: ieeeOnce.Do(ieeeInit)
crc32.go#L130: castagnoliOnce.Do(castagnoliInit)
crc32.go#L150: ieeeOnce.Do(ieeeInit)
crc32.go#L201: ieeeOnce.Do(ieeeInit)
crc32.go#L237: ieeeOnce.Do(ieeeInit)
internal/godebug
godebug.go#L122: s.nonDefaultOnce.Do(s.register)
godebug.go#L158: s.once.Do(func() {
internal/poll
fd_poll_runtime.go#L39: serverInit.Do(runtime_pollServerInit)
io
pipe.go#L72: p.once.Do(func() { close(p.done) })
pipe.go#L103: p.once.Do(func() { close(p.done) })
math/big
sqrt.go#L18: threeOnce.Do(func() {
mime
type.go#L105: once.Do(initMime)
type.go#L147: once.Do(initMime)
type.go#L164: once.Do(initMime)
net
conf.go#L80: confOnce.Do(initConfVal)
dnsclient_unix.go#L388: conf.initOnce.Do(conf.init)
ipsock.go#L34: ipStackCaps.Once.Do(ipStackCaps.probe)
ipsock.go#L41: ipStackCaps.Once.Do(ipStackCaps.probe)
ipsock.go#L56: ipStackCaps.Once.Do(ipStackCaps.probe)
lookup_unix.go#L51: onceReadProtocols.Do(readProtocols)
mptcpsock_linux.go#L30: mptcpOnce.Do(initMPTCPavailable)
net.go#L395: listenerBacklogCache.Do(func() { listenerBacklogCache.val = maxListenerBacklog() })
net.go#L800: threadOnce.Do(func() {
nss.go#L50: conf.initOnce.Do(conf.init)
pipe.go#L236: p.once.Do(func() { close(p.localDone) })
port_unix.go#L55: onceReadServices.Do(readServices)
unixsock_posix.go#L191: ln.unlinkOnce.Do(func() {
net/http
client.go#L393: once.Do(func() {
h2_bundle.go#L3260: http2commonBuildOnce.Do(http2buildCommonHeaderMaps)
h2_bundle.go#L5264: sc.shutdownOnce.Do(func() { sc.sendServeMsg(http2gracefulShutdownMsg) })
h2_bundle.go#L6372: b.closeOnce.Do(func() {
h2_bundle.go#L7460: t.connPoolOnce.Do(t.initConnPool)
h2_bundle.go#L7600: cs.abortOnce.Do(func() {
server.go#L3565: srv.nextProtoOnce.Do(srv.onceSetNextProtoDefaults)
server.go#L3578: srv.nextProtoOnce.Do(srv.onceSetNextProtoDefaults_Serve)
server.go#L3771: oc.once.Do(oc.close)
transport.go#L314: t.nextProtoOnce.Do(t.onceSetNextProtoDefaults)
transport.go#L531: t.nextProtoOnce.Do(t.onceSetNextProtoDefaults)
transport.go#L836: t.nextProtoOnce.Do(t.onceSetNextProtoDefaults)
transport.go#L910: envProxyOnce.Do(func() {
net/textproto
reader.go#L781: commonHeaderOnce.Do(initCommonHeader)
strings
replace.go#L96: r.once.Do(r.buildOnce)
replace.go#L102: r.once.Do(r.buildOnce)
syscall
env_unix.go#L56: envOnce.Do(copyenv)
env_unix.go#L70: envOnce.Do(copyenv)
env_unix.go#L92: envOnce.Do(copyenv)
env_unix.go#L127: envOnce.Do(copyenv) // prevent copyenv in Getenv/Setenv
env_unix.go#L140: envOnce.Do(copyenv)
time
zoneinfo.go#L96: localOnce.Do(initLocal)
zoneinfo.go#L119: unnamedFixedZonesOnce.Do(func() {
zoneinfo.go#L678: zoneinfoOnce.Do(func() {
unique
handle.go#L39: setupMake.Do(registerCleanup)
vendor/golang.org/x/net/http2/hpack
huffman.go#L134: buildRootOnce.Do(buildRootHuffmanNode)
vendor/golang.org/x/text/unicode/norm
composition.go#L466: recompMapOnce.Do(buildRecompMap)
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |