flag.FlagSet.Var
standard libraryThe 802nd most-called standard-library method by production calls. Called 949 times across 93 modules; 846 of those run outside tests and generated code.
- prod calls
- 846
- non-test, non-generated
- all calls
- 949
- total callsites
- modules
- 93
- distinct callers
- in loop
- 3%
- of prod calls
- in tests
- 11%
- 103 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 44 5%
where it's called
Callsites in the wild
12 representative callsites of 949, 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
-
onsi/ginkgo/v2 @v2.32.0
in loop -
urfave/cli/v2 @v2.27.7
in loop -
x/tools @v0.48.0
go/analysis/internal/analysisflags/help.go:98
in loop - in loop
- in loop
- 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/v310911%
- 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 →