flag.Var
standard libraryThe 2229th most-called standard-library function by production calls. Called 299 times across 91 modules; 273 of those run outside tests and generated code.
- prod calls
- 273
- non-test, non-generated
- all calls
- 299
- total callsites
- modules
- 91
- distinct callers
- in loop
- 1%
- of prod calls
- in tests
- 7%
- 20 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 Var from notable Go projects. Open one on the map to see what else it hammers.
- VictoriaMetrics 20 7%
- Kubernetes 17 6%
- Istio 14 5%
- Go (golang.org/x) 10 4%
- CockroachDB 6 2%
where it's called
Callsites in the wild
12 representative callsites of 299, prioritizing in-loop and non-test usage. We link to source, never display it.
-
x/tools @v0.48.0
go/analysis/internal/analysisflags/flags.go:56
in loop -
x/tools @v0.48.0
go/analysis/internal/analysisflags/flags.go:67
in loop -
x/tools @v0.48.0
go/analysis/internal/analysisflags/flags.go:90
in loop -
cockroachdb/cockroach @v19.2.12+incompatible
-
docker/distribution @v2.8.3+incompatible
-
filippo.io/age @v1.3.1
cmd/age/age.go:133
-
AlexxIT/go2rtc @v1.9.14
-
Binject/debug @v0.0.0-20260128230015-4e22595eaac6
-
FiloSottile/age @v1.3.1
-
SAP/go-hdb @v1.17.3
-
adnanh/webhook @v0.0.0-20260802140341-92742d64dbc0
-
apernet/quic-go @v0.61.0
top callers
The modules that reach for it
The modules that call Var most in this snapshot.
- github.com/probelabs/goreplay289%
- github.com/nsqio/nsq227%
- github.com/VictoriaMetrics/VictoriaLogs155%
- github.com/VictoriaMetrics/VictoriaMetrics155%
- github.com/facebookincubator/nvdtools134%
siblings
More from flag
The other most-called functions in this package. See all →