sync.Once.Do (method)
74 uses
sync (current package)
once.go#L42: func (o *Once) Do(f func()) {
compress/flate
inflate.go#L757: fixedOnce.Do(func() {
crypto/des
block.go#L228: feistelBoxOnce.Do(initFeistelBox)
crypto/elliptic
elliptic.go#L433: initonce.Do(initAll)
elliptic.go#L445: initonce.Do(initAll)
elliptic.go#L457: initonce.Do(initAll)
p224.go#L42: initonce.Do(initAll)
p256_asm.go#L459: precomputeOnce.Do(initTable)
crypto/internal/randutil
randutil.go#L26: closedChanOnce.Do(func() {
crypto/tls
common.go#L1429: once.Do(initDefaultCipherSuites)
common.go#L1434: once.Do(initDefaultCipherSuites)
crypto/x509
cert_pool.go#L227: lazyCert.Do(func() {
root.go#L22: once.Do(initSystemRoots)
go.etcd.io/bbolt
db.go#L309: db.freelistLoad.Do(func() {
db.go#L791: b.start.Do(b.run)
golang.org/x/sys/unix
syscall_unix.go#L80: signalNameMapOnce.Do(func() {
hash/crc32
crc32.go#L131: ieeeOnce.Do(ieeeInit)
crc32.go#L134: castagnoliOnce.Do(castagnoliInit)
crc32.go#L153: ieeeOnce.Do(ieeeInit)
crc32.go#L221: ieeeOnce.Do(ieeeInit)
crc32.go#L256: ieeeOnce.Do(ieeeInit)
html
escape.go#L188: populateMapsOnce.Do(populateMaps)
internal/poll
fd_poll_runtime.go#L38: serverInit.Do(runtime_pollServerInit)
internal/sysinfo
sysinfo.go#L22: cpu.once.Do(func() {
io
pipe.go#L80: p.once.Do(func() { close(p.done) })
pipe.go#L119: p.once.Do(func() { close(p.done) })
math/big
sqrt.go#L18: threeOnce.Do(func() {
mime
type.go#L109: once.Do(initMime)
type.go#L151: once.Do(initMime)
type.go#L168: once.Do(initMime)
net
conf.go#L42: confOnce.Do(initConfVal)
dnsclient_unix.go#L349: conf.initOnce.Do(conf.init)
ipsock.go#L32: ipStackCaps.Once.Do(ipStackCaps.probe)
ipsock.go#L39: ipStackCaps.Once.Do(ipStackCaps.probe)
ipsock.go#L47: ipStackCaps.Once.Do(ipStackCaps.probe)
lookup_unix.go#L54: onceReadProtocols.Do(readProtocols)
net.go#L377: listenerBacklogCache.Do(func() { listenerBacklogCache.val = maxListenerBacklog() })
net.go#L669: threadOnce.Do(func() {
pipe.go#L236: p.once.Do(func() { close(p.localDone) })
port_unix.go#L55: onceReadServices.Do(readServices)
unixsock_posix.go#L181: ln.unlinkOnce.Do(func() {
net/http
client.go#L385: once.Do(func() {
h2_bundle.go#L3035: http2commonBuildOnce.Do(http2buildCommonHeaderMaps)
h2_bundle.go#L4864: sc.shutdownOnce.Do(func() { sc.sendServeMsg(http2gracefulShutdownMsg) })
h2_bundle.go#L6717: t.connPoolOnce.Do(t.initConnPool)
h2_bundle.go#L9132: s.fnonce.Do(s.fn)
h2_bundle.go#L9152: go func() { s.fnonce.Do(s.fn) }()
server.go#L3215: srv.nextProtoOnce.Do(srv.onceSetNextProtoDefaults)
server.go#L3228: srv.nextProtoOnce.Do(srv.onceSetNextProtoDefaults_Serve)
server.go#L3411: oc.once.Do(oc.close)
transport.go#L308: t.nextProtoOnce.Do(t.onceSetNextProtoDefaults)
transport.go#L503: t.nextProtoOnce.Do(t.onceSetNextProtoDefaults)
transport.go#L759: t.nextProtoOnce.Do(t.onceSetNextProtoDefaults)
transport.go#L814: envProxyOnce.Do(func() {
net/textproto
reader.go#L31: commonHeaderOnce.Do(initCommonHeader)
reader.go#L596: commonHeaderOnce.Do(initCommonHeader)
os/exec
exec.go#L603: c.once.Do(c.close)
os/signal
signal.go#L149: watchSignalLoopOnce.Do(func() {
os/user
lookup.go#L15: cache.Do(func() { cache.u, cache.err = current() })
strings
replace.go#L96: r.once.Do(r.buildOnce)
replace.go#L102: r.once.Do(r.buildOnce)
syscall
env_unix.go#L61: envOnce.Do(copyenv)
env_unix.go#L75: envOnce.Do(copyenv)
env_unix.go#L97: envOnce.Do(copyenv)
env_unix.go#L132: envOnce.Do(copyenv) // prevent copyenv in Getenv/Setenv
env_unix.go#L145: envOnce.Do(copyenv)
testing
benchmark.go#L260: labelsOnce.Do(func() {
benchmark.go#L653: labelsOnce.Do(func() {
testing.go#L939: tempDirReplacer.Do(func() {
testing.go#L1593: m.afterOnce.Do(func() {
time
zoneinfo.go#L92: localOnce.Do(initLocal)
zoneinfo.go#L643: 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.2.8-preview. (GOOS=darwin GOARCH=arm64)