math.Inf
standard libraryThe 704th most-called standard-library function by production calls. Called 4,306 times across 217 modules; 994 of those run outside tests and generated code.
17% in production calls vs 2026-W37 (849 → 994)
- prod calls
- 994
- non-test, non-generated
- all calls
- 4,306
- total callsites
- modules
- 217
- distinct callers
- in loop
- 11%
- of prod calls
- in tests
- 73%
- 3,125 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 44 4%
- Grafana 28 3%
- VictoriaMetrics 25 3%
- Kubernetes 18 2%
- Protocol Buffers 12 1%
where it's called
Callsites in the wild
12 representative callsites of 4,306, prioritizing in-loop and non-test usage. We link to source, never display it.
-
aws/aws-sdk-go-v2/service/apigateway @v1.47.0
deserializers.go:24737
in loop -
aws/aws-sdk-go-v2/service/apigatewayv2 @v1.42.0
deserializers.go:23141
in loop -
aws/aws-sdk-go-v2/service/devicefarm @v1.48.0
deserializers.go:10388
in loop -
aws/aws-sdk-go-v2/service/efs @v1.49.0
deserializers.go:579
in loop -
aws/aws-sdk-go-v2/service/glue @v1.160.0
deserializers.go:41909
in loop -
aws/aws-sdk-go-v2/service/lambda @v1.108.0
deserializers.go:20209
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-20260919054224-26f3455a4cb9
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,57337%
- github.com/terrastruct/d22406%
- github.com/google/grumpy1904%
- github.com/prometheus/prometheus1433%
- github.com/aws/aws-sdk-go-v2/service/glue1163%
siblings
More from math
The other most-called functions in this package. See all →