fmt.State.Flag
standard libraryThe 3735th most-called standard-library method by production calls. Called 219 times across 52 modules; 164 of those run outside tests and generated code.
No change in production calls since 2026-W39.
- prod calls
- 164
- non-test, non-generated
- all calls
- 219
- total callsites
- modules
- 52
- distinct callers
- in loop
- 21%
- of prod calls
- in tests
- 8%
- 18 calls
- resolved
- 0%
- 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 →
- Interface method100%Called through an interface. The runtime target may differ.
who calls this
Notable callers
Production calls into State.Flag from notable Go projects. Open one on the map to see what else it hammers.
- Cilium 9 5%
- CockroachDB 8 5%
- Uber Go 7 4%
- Go (golang.org/x) 6 4%
- Protocol Buffers 6 4%
where it's called
Callsites in the wild
12 representative callsites of 219, prioritizing in-loop and non-test usage. We link to source, never display it.
-
davecgh/go-spew @v1.1.1
in loop - in loop
- in loop
-
logrusorgru/aurora @v2.0.3+incompatible
in loop -
logrusorgru/aurora/v4 @v4.0.0
in loop - in loop
- in loop
-
yuin/gopher-lua @v1.1.2
in loop -
v1/gonum @v0.17.0
num/dual/dual.go:56
in loop -
davecgh/go-spew @v1.1.1
in loop - in loop
- in loop
top callers
The modules that reach for it
The modules that call State.Flag most in this snapshot.
- gonum.org/v1/gonum6128%
- github.com/cockroachdb/errors125%
- github.com/cilium/ebpf94%
- github.com/davecgh/go-spew84%
- github.com/expr-lang/expr84%
siblings
More from fmt
The other most-called members in this package. See all →