flag.FlagSet.Var
standard libraryThe 839th most-called standard-library method by production calls. Called 938 times across 92 modules; 845 of those run outside tests and generated code.
No change in production calls since 2026-W39.
- prod calls
- 845
- non-test, non-generated
- all calls
- 938
- total callsites
- modules
- 92
- distinct callers
- in loop
- 3%
- of prod calls
- in tests
- 10%
- 93 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 →
- Concrete method100%A method on a value whose type is known exactly.
who calls this
Notable callers
Production calls into FlagSet.Var from notable Go projects. Open one on the map to see what else it hammers.
- Grafana 229 27%
- Consul 103 12%
- Cortex 66 8%
- Nomad 60 7%
- Kubernetes 48 6%
where it's called
Callsites in the wild
12 representative callsites of 938, prioritizing in-loop and non-test usage. We link to source, never display it.
-
etcd-io/etcd @v2.3.8+incompatible
in loop -
air-verse/air @v1.67.4
in loop -
coreos/etcd @v2.3.8+incompatible
in loop - in loop
- in loop
- in loop
-
onsi/ginkgo/v2 @v2.33.0
in loop -
urfave/cli/v2 @v2.27.7
in loop -
x/tools @v0.50.0
go/analysis/internal/analysisflags/help.go:98
in loop - in loop
-
k8s.io/kubernetes @v1.37.1
test/utils/ktesting/ktesting.go:60
in loop - in loop
top callers
The modules that reach for it
The modules that call FlagSet.Var most in this snapshot.
- github.com/grafana/loki/v310912%
- github.com/hashicorp/consul10311%
- github.com/cortexproject/cortex677%
- github.com/hashicorp/nomad677%
- github.com/grafana/mimir536%
siblings
More from flag
The other most-called members in this package. See all →