sync.OnceFunc
standard libraryThe 5521st most-called standard-library function by production calls. Called 144 times across 44 modules; 108 of those run outside tests and generated code.
9% in production calls vs 2026-W37 (99 → 108)
- prod calls
- 108
- non-test, non-generated
- all calls
- 144
- total callsites
- modules
- 44
- distinct callers
- in loop
- 6%
- of prod calls
- in tests
- 25%
- 36 calls
- resolved
- 100%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Package function100%A direct call to an exported package function, resolved by type.
who calls this
Notable callers
Production calls into OnceFunc from notable Go projects. Open one on the map to see what else it hammers.
where it's called
Callsites in the wild
12 representative callsites of 144, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
- in loop
- in loop
-
google.golang.org/grpc @v1.84.0
internal/xds/clients/xdsclient/ads_stream.go:468
in loop - in loop
- in loop test
-
seaweedfs/seaweedfs @v0.0.0-20260921075935-e2608edda4f9
in loop test -
sigs.k8s.io/controller-runtime @v0.25.1
pkg/client/consistency_fake_test.go:350
in loop test - in loop test
- in loop test
-
docker/cli @v29.8.1+incompatible
top callers
The modules that reach for it
The modules that call OnceFunc most in this snapshot.
- github.com/grpc/grpc-go2215%
- google.golang.org/grpc2215%
- github.com/esengine/DeepSeek-Reasonix139%
- github.com/aquasecurity/trivy107%
- github.com/microsoft/typescript-go53%
siblings
More from sync
The other most-called functions in this package. See all →