sync.OnceValue
standard libraryThe 1724th most-called standard-library function by production calls. Called 386 times across 76 modules; 357 of those run outside tests and generated code.
- prod calls
- 357
- non-test, non-generated
- all calls
- 386
- total callsites
- modules
- 76
- distinct callers
- in loop
- <1%
- of prod calls
- in tests
- 4%
- 16 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 OnceValue from notable Go projects. Open one on the map to see what else it hammers.
- Gitea 41 11%
- Tailscale 24 7%
- Cilium 23 6%
- Docker 17 5%
- Kubernetes 8 2%
where it's called
Callsites in the wild
12 representative callsites of 386, prioritizing in-loop and non-test usage. We link to source, never display it.
-
go-json-experiment/json @v0.0.0-20260623181947-01eb4420fa68
in loop -
microsoft/typescript-go @v0.0.0-20260804013739-12318e599d21
in loop -
microsoft/typescript-go @v0.0.0-20260804013739-12318e599d21
in loop - in loop test
- in loop test
-
tailscale.com @v1.102.2
util/osuser/user_test.go:83
in loop test -
-
fang/v2 @v2.0.1
help.go:30
-
-
go/storage @v1.64.0
invoke.go:51
-
-
moby/sys/userns @v0.1.0
userns_linux.go:10
top callers
The modules that reach for it
The modules that call OnceValue most in this snapshot.
- gitea.dev4111%
- github.com/go-gitea/gitea4111%
- github.com/microsoft/typescript-go3910%
- github.com/sagernet/tailscale256%
- github.com/tailscale/tailscale256%
siblings
More from sync
The other most-called functions in this package. See all →