cmp.Or
standard libraryThe 669th most-called standard-library function by production calls. Called 1,175 times across 75 modules; 1,061 of those run outside tests and generated code.
15% in production calls vs 2026-W37 (1,255 → 1,061)
- prod calls
- 1,061
- non-test, non-generated
- all calls
- 1,175
- total callsites
- modules
- 75
- distinct callers
- in loop
- 23%
- of prod calls
- in tests
- 10%
- 114 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 Or from notable Go projects. Open one on the map to see what else it hammers.
- Tailscale 83 8%
- Prometheus 41 4%
- Cilium 26 2%
- Docker 7 <1%
- Go (golang.org/x) 3 <1%
where it's called
Callsites in the wild
12 representative callsites of 1,175, prioritizing in-loop and non-test usage. We link to source, never display it.
-
charm.land/catwalk @v0.52.48
cmd/ionet/main.go:102
in loop -
charm.land/fantasy @v0.44.0
providers/kronk/language_model.go:308
in loop -
cilium/cilium @v1.20.2
in loop - in loop
- in loop
- in loop
- in loop
- in loop
- in loop
-
gin-gonic/gin @v1.12.0
in loop - in loop
-
go-json-experiment/json @v0.0.0-20260820222146-c27c302e5fc3
in loop
top callers
The modules that reach for it
The modules that call Or most in this snapshot.
- github.com/tailscale/tailscale978%
- tailscale.com978%
- github.com/sagernet/tailscale968%
- github.com/temporalio/temporal898%
- go.temporal.io/server898%
siblings
More from cmp
The other most-called functions in this package. See all →