github.com/spf13/pflag.NewFlagSet
third-partyThe 2425th most-called third-party function by production calls. Called 789 times across 82 modules; 252 of those run outside tests and generated code.
No change in production calls since 2026-W37.
- prod calls
- 252
- non-test, non-generated
- all calls
- 789
- total callsites
- modules
- 82
- distinct callers
- in loop
- 3%
- of prod calls
- in tests
- 68%
- 537 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 function88%A direct call to an exported package function, resolved by type.
- Package function (by syntax)12%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 51 20%
- CockroachDB 27 11%
- Cilium 18 7%
- Grafana 11 4%
- containerd 2 <1%
where it's called
Callsites in the wild
12 representative callsites of 789, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cilium/hive @v1.0.5
in loop - in loop
- in loop
- in loop
- in loop
-
k8s.io/component-base @v0.37.0
cli/flag/sectioned.go:70
in loop -
vitess.io/vitess @v0.24.3
go/vt/vtctl/vtctl.go:4013
in loop - in loop
- in loop test
-
moby/moby @v28.5.2+incompatible
in loop test -
anchore/clio @v0.1.1
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/pflag8511%
- github.com/kubernetes/kubernetes7610%
- github.com/cilium/cilium537%
- github.com/vitessio/vitess446%
- vitess.io/vitess446%
siblings
More from github.com/spf13/pflag
The other most-called functions in this package. See all →