math.Inf
standard libraryThe 667th most-called standard-library function by production calls. Called 4,779 times across 230 modules; 1,157 of those run outside tests and generated code.
11% in production calls vs 2026-W48 (1,040 → 1,157)
- prod calls
- 1,157
- non-test, non-generated
- all calls
- 4,779
- total callsites
- modules
- 230
- distinct callers
- in loop
- 13%
- of prod calls
- in tests
- 75%
- 3,605 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 Inf from notable Go projects. Open one on the map to see what else it hammers.
- Prometheus 51 4%
- Grafana 29 3%
- VictoriaMetrics 25 2%
- Kubernetes 21 2%
- Protocol Buffers 12 1%
where it's called
Callsites in the wild
12 representative callsites of 4,779, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
aws/aws-sdk-go-v2/service/opsworks @v1.31.0
deserializers.go:7996
in loop - in loop
- in loop
-
gdamore/tcell @v1.4.1
in loop -
google/gvisor @v0.0.0-20261130174204-4c7ed132a44d
in loop - in loop
- in loop
- in loop
- in loop
-
microsoft/typescript-go @v0.0.0-20260820064610-89d5d5b2849a
in loop - in loop
top callers
The modules that reach for it
The modules that call Inf most in this snapshot.
- gonum.org/v1/gonum1,57333%
- github.com/terrastruct/d24269%
- github.com/google/grumpy1904%
- github.com/prometheus/prometheus1824%
- google.golang.org/protobuf992%
siblings
More from math
The other most-called functions in this package. See all →