github.com/spf13/pflag.NewFlagSet
third-partyThe 2409th most-called third-party function by production calls. Called 775 times across 80 modules; 250 of those run outside tests and generated code.
- prod calls
- 250
- non-test, non-generated
- all calls
- 775
- total callsites
- modules
- 80
- distinct callers
- in loop
- 3%
- of prod calls
- in tests
- 68%
- 525 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 775, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cilium/hive @v1.0.4
in loop - in loop
- in loop
- in loop
- in loop
- in loop
-
vitess.io/vitess @v0.24.2
go/vt/vtctl/vtctl.go:4013
in loop -
k8s.io/component-base @v0.36.3
cli/flag/sectioned.go:70
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 →