github.com/spf13/pflag.NewFlagSet
third-partyThe 2548th most-called third-party function by production calls. Called 828 times across 86 modules; 256 of those run outside tests and generated code.
1% in production calls vs 2026-W48 (254 → 256)
- prod calls
- 256
- non-test, non-generated
- all calls
- 828
- total callsites
- modules
- 86
- distinct callers
- in loop
- 3%
- of prod calls
- in tests
- 69%
- 572 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 function89%A direct call to an exported package function, resolved by type.
- Package function (by syntax)11%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into NewFlagSet from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 49 19%
- CockroachDB 27 11%
- Cilium 18 7%
- Grafana 11 4%
- Docker 3 1%
where it's called
Callsites in the wild
12 representative callsites of 828, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cilium/hive @v1.0.6
in loop - in loop
- in loop
- in loop
- in loop
- in loop
-
vitess.io/vitess @v0.24.5
go/vt/vtctl/vtctl.go:4013
in loop -
k8s.io/component-base @v0.37.3
cli/flag/sectioned.go:70
in loop - in loop test
-
docker/docker @v28.5.2+incompatible
in loop test -
anchore/clio @v0.1.2
in loop test - in loop test
top callers
The modules that reach for it
The modules that call NewFlagSet most in this snapshot.
- github.com/spf13/pflag10613%
- github.com/kubernetes/kubernetes769%
- github.com/cilium/cilium536%
- github.com/vitessio/vitess466%
- vitess.io/vitess466%
siblings
More from github.com/spf13/pflag
The other most-called functions in this package. See all →