type sync.Once
72 uses
sync (current package)
once.go#L20: type Once struct {
once.go#L52: func (o *Once) Do(f func()) {
once.go#L73: func (o *Once) doSlow(f func()) {
oncefunc.go#L15: once Once
oncefunc.go#L50: once Once
oncefunc.go#L84: once Once
compress/flate
inflate.go#L29: var fixedOnce sync.Once
context
context.go#L348: once sync.Once // either starts running f or stops f from running
crypto/des
block.go#L74: var feistelBoxOnce sync.Once
crypto/elliptic
elliptic.go#L224: var initonce sync.Once
crypto/internal/fips140/edwards25519
scalarmult.go#L26: initOnce sync.Once
scalarmult.go#L136: initOnce sync.Once
crypto/internal/fips140/nistec
p224.go#L111: var _p224BOnce sync.Once
p224.go#L387: var p224GeneratorTableOnce sync.Once
p224_sqrt.go#L13: var p224GGOnce sync.Once
p384.go#L111: var _p384BOnce sync.Once
p384.go#L387: var p384GeneratorTableOnce sync.Once
p521.go#L111: var _p521BOnce sync.Once
p521.go#L387: var p521GeneratorTableOnce sync.Once
crypto/internal/sysrand
rand.go#L58: var urandomOnce sync.Once
crypto/x509
cert_pool.go#L236: sync.Once
root.go#L23: once sync.Once
github.com/cenkalti/backoff/v4
ticker.go#L20: stopOnce sync.Once
github.com/gotd/td/mtproto
vendored_keys.go#L23: Once sync.Once
github.com/gotd/td/telegram
tdlib_json.go#L19: tdlibToTelegramMapOnce sync.Once
typemap.go#L17: typesOnce sync.Once
github.com/gotd/td/telegram/dcs
dns.go#L24: once sync.Once
github.com/gotd/td/telegram/downloader
parallel.go#L21: typOnce := &sync.Once{}
github.com/gotd/td/telegram/internal/version
version.go#L12: sync.Once
github.com/gotd/td/transport
once_close.go#L12: once sync.Once
github.com/klauspost/compress/flate
inflate.go#L47: var fixedOnce sync.Once
github.com/klauspost/compress/zstd
encoder.go#L29: init sync.Once
encoder.go#L151: e.init = sync.Once{}
fse_predefined.go#L73: var predef sync.Once
github.com/refraction-networking/utls
u_ech.go#L55: initOnce sync.Once
go.opentelemetry.io/otel/attribute
encoder.go#L58: defaultEncoderOnce sync.Once
golang.org/x/net/proxy
proxy.go#L127: once sync.Once
proxy.go#L147: e.once = sync.Once{}
golang.org/x/sync/errgroup
errgroup.go#L32: errOnce sync.Once
internal/godebug
godebug.go#L63: once sync.Once
godebug.go#L69: nonDefaultOnce sync.Once
internal/poll
fd_poll_runtime.go#L36: var serverInit sync.Once
io
pipe.go#L44: once sync.Once // Protects closing done
math/big
sqrt.go#L13: sync.Once
mime
type.go#L131: var once sync.Once // guards initMime
net
conf.go#L73: confOnce sync.Once // guards init of confVal via initConfVal
dnsclient_unix.go#L356: initOnce sync.Once // guards init of resolverConfig
ipsock.go#L23: sync.Once // guards following
mptcpsock_linux.go#L17: mptcpOnce sync.Once
net.go#L387: sync.Once
net.go#L807: var threadOnce sync.Once
nss.go#L22: initOnce sync.Once // guards init of nsswitchConfig
pipe.go#L100: once sync.Once // Protects closing localDone
port_unix.go#L16: var onceReadServices sync.Once
unixsock.go#L231: unlinkOnce sync.Once
net/http
h2_bundle.go#L4632: shutdownOnce sync.Once
h2_bundle.go#L6528: closeOnce sync.Once // for use by Close only
h2_bundle.go#L7475: connPoolOnce sync.Once
h2_bundle.go#L7713: abortOnce sync.Once
server.go#L3080: nextProtoOnce sync.Once // guards setupHTTP2_* init
server.go#L3931: once sync.Once
transport.go#L290: nextProtoOnce sync.Once
transport.go#L965: envProxyOnce sync.Once
transport.go#L980: envProxyOnce = sync.Once{}
net/http/internal/httpcommon
httpcommon.go#L69: commonBuildOnce sync.Once
net/textproto
reader.go#L800: var commonHeaderOnce sync.Once
strings
replace.go#L15: once sync.Once // guards buildOnce method
time
zoneinfo.go#L89: var localOnce sync.Once
zoneinfo.go#L108: var unnamedFixedZonesOnce sync.Once
zoneinfo.go#L646: var zoneinfoOnce sync.Once
vendor/golang.org/x/net/http2/hpack
huffman.go#L129: buildRootOnce sync.Once
vendor/golang.org/x/text/unicode/norm
tables15.0.0.go#L6962: var recompMapOnce sync.Once
![]() |
The pages are generated with Golds v0.8.4. (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. |