math.Mod
standard libraryThe 1383rd most-called standard-library function by production calls. Called 470 times across 65 modules; 448 of those run outside tests and generated code.
3% in production calls vs 2026-W37 (433 → 448)
- prod calls
- 448
- non-test, non-generated
- all calls
- 470
- total callsites
- modules
- 65
- distinct callers
- in loop
- 4%
- of prod calls
- in tests
- 5%
- 22 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 Mod from notable Go projects. Open one on the map to see what else it hammers.
- CockroachDB 7 2%
- Grafana 5 1%
- VictoriaMetrics 5 1%
- Argo 3 <1%
- Prometheus 3 <1%
where it's called
Callsites in the wild
12 representative callsites of 470, prioritizing in-loop and non-test usage. We link to source, never display it.
-
Masterminds/sprig/v3 @v3.3.0
in loop - in loop
- in loop
-
fogleman/gg @v1.3.0
in loop -
rivo/tview @v0.42.0
in loop - in loop
-
v1/plot @v0.17.0
labelling.go:196
in loop -
k8s.io/kubernetes @v1.37.0
test/e2e/storage/testsuites/volume_io.go:348
in loop - in loop
- in loop
-
rivo/tview @v0.42.0
in loop - in loop
top callers
The modules that reach for it
The modules that call Mod most in this snapshot.
- github.com/go-playground/locales31066%
- github.com/terrastruct/d2266%
- github.com/cockroachdb/cockroach71%
- github.com/esimov/caire71%
- github.com/lucasb-eyer/go-colorful71%
siblings
More from math
The other most-called functions in this package. See all →