sync.Once.Do (method)
95 uses
sync (current package)
once.go#L48: func (o *Once) Do(f func()) {
oncefunc.go#L31: once.Do(g)
oncefunc.go#L60: once.Do(g)
oncefunc.go#L91: once.Do(g)
compress/flate
inflate.go#L767: fixedOnce.Do(func() {
context
context.go#L317: a.once.Do(func() {
context.go#L342: a.once.Do(func() {
crypto/des
block.go#L228: feistelBoxOnce.Do(initFeistelBox)
crypto/ecdh
ecdh.go#L162: k.publicKeyOnce.Do(func() {
crypto/ecdsa
ecdsa.go#L615: p224Once.Do(func() {
ecdsa.go#L628: p256Once.Do(func() {
ecdsa.go#L641: p384Once.Do(func() {
ecdsa.go#L654: 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#L228: lazyCert.Do(func() {
root.go#L21: once.Do(initSystemRoots)
github.com/cenkalti/backoff/v4
ticker.go#L55: t.stopOnce.Do(func() { close(t.stop) })
github.com/gotd/td/internal/mtproto
vendored_keys.go#L43: parsedKeys.Once.Do(func() {
github.com/gotd/td/telegram
typemap.go#L21: typesOnce.Do(func() {
github.com/gotd/td/telegram/dcs
dns.go#L30: dnsKey.once.Do(func() {
github.com/gotd/td/telegram/internal/version
version.go#L19: versionOnce.Do(func() {
github.com/gotd/td/transport
once_close.go#L17: o.once.Do(func() {
github.com/klauspost/compress/flate
inflate.go#L759: fixedOnce.Do(func() {
go.opentelemetry.io/otel/attribute
encoder.go#L89: defaultEncoderOnce.Do(func() {
go.uber.org/zap/zapcore
lazy_with.go#L41: d.Once.Do(func() {
golang.org/x/net/proxy
proxy.go#L132: e.once.Do(e.init)
golang.org/x/sync/errgroup
errgroup.go#L76: g.errOnce.Do(func() {
errgroup.go#L105: g.errOnce.Do(func() {
hash/crc32
crc32.go#L126: ieeeOnce.Do(ieeeInit)
crc32.go#L129: castagnoliOnce.Do(castagnoliInit)
crc32.go#L149: ieeeOnce.Do(ieeeInit)
crc32.go#L215: ieeeOnce.Do(ieeeInit)
crc32.go#L251: ieeeOnce.Do(ieeeInit)
internal/godebug
godebug.go#L102: s.nonDefaultOnce.Do(s.register)
godebug.go#L138: s.once.Do(func() {
internal/poll
copy_file_range_linux.go#L23: kernelVersion53Once.Do(func() {
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#L112: once.Do(initMime)
type.go#L154: once.Do(initMime)
type.go#L171: once.Do(initMime)
net
conf.go#L81: confOnce.Do(initConfVal)
dnsclient_unix.go#L372: conf.initOnce.Do(conf.init)
ipsock.go#L33: ipStackCaps.Once.Do(ipStackCaps.probe)
ipsock.go#L40: ipStackCaps.Once.Do(ipStackCaps.probe)
ipsock.go#L55: ipStackCaps.Once.Do(ipStackCaps.probe)
lookup_unix.go#L52: onceReadProtocols.Do(readProtocols)
mptcpsock_linux.go#L30: mptcpOnce.Do(initMPTCPavailable)
net.go#L373: listenerBacklogCache.Do(func() { listenerBacklogCache.val = maxListenerBacklog() })
net.go#L685: 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#L394: once.Do(func() {
h2_bundle.go#L3255: http2commonBuildOnce.Do(http2buildCommonHeaderMaps)
h2_bundle.go#L5215: sc.shutdownOnce.Do(func() { sc.sendServeMsg(http2gracefulShutdownMsg) })
h2_bundle.go#L6316: b.closeOnce.Do(func() {
h2_bundle.go#L7361: t.connPoolOnce.Do(t.initConnPool)
h2_bundle.go#L7502: cs.abortOnce.Do(func() {
server.go#L3290: srv.nextProtoOnce.Do(srv.onceSetNextProtoDefaults)
server.go#L3303: srv.nextProtoOnce.Do(srv.onceSetNextProtoDefaults_Serve)
server.go#L3498: oc.once.Do(oc.close)
transport.go#L314: t.nextProtoOnce.Do(t.onceSetNextProtoDefaults)
transport.go#L514: t.nextProtoOnce.Do(t.onceSetNextProtoDefaults)
transport.go#L780: t.nextProtoOnce.Do(t.onceSetNextProtoDefaults)
transport.go#L835: envProxyOnce.Do(func() {
net/textproto
reader.go#L762: 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#L92: localOnce.Do(initLocal)
zoneinfo.go#L115: unnamedFixedZonesOnce.Do(func() {
zoneinfo.go#L674: zoneinfoOnce.Do(func() {
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.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |