math.Mod
standard libraryThe 1415th most-called standard-library function by production calls. Called 441 times across 63 modules; 433 of those run outside tests and generated code.
- prod calls
- 433
- non-test, non-generated
- all calls
- 441
- total callsites
- modules
- 63
- distinct callers
- in loop
- 3%
- of prod calls
- in tests
- 2%
- 8 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 441, 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 -
v1/plot @v0.17.0
labelling.go:196
in loop - in loop
- in loop
-
k8s.io/kubernetes @v1.36.3
test/e2e/storage/testsuites/volume_io.go:348
in loop -
rivo/tview @v0.42.0
in loop - 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/locales31070%
- github.com/cockroachdb/cockroach72%
- github.com/esimov/caire72%
- github.com/lucasb-eyer/go-colorful72%
- github.com/microsoft/typescript-go72%
siblings
More from math
The other most-called functions in this package. See all →