flag.NewFlagSet
standard libraryThe 832nd most-called standard-library function by production calls. Called 1,602 times across 177 modules; 817 of those run outside tests and generated code.
- prod calls
- 817
- non-test, non-generated
- all calls
- 1,602
- total callsites
- modules
- 177
- distinct callers
- in loop
- <1%
- of prod calls
- in tests
- 49%
- 785 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 NewFlagSet from notable Go projects. Open one on the map to see what else it hammers.
where it's called
Callsites in the wild
12 representative callsites of 1,602, prioritizing in-loop and non-test usage. We link to source, never display it.
-
golang/dep @v0.5.4
in loop - in loop
-
u-root/u-root @v0.16.0
in loop -
x/tools @v0.48.0
go/analysis/internal/analysisflags/help.go:91
in loop - in loop
-
tailscale.com @v1.102.2
cmd/tailscale/cli/ffcomplete/internal/complete.go:61
in loop - in loop test
- in loop test
-
docker/docker @v28.5.2+incompatible
in loop test -
etcd-io/etcd @v2.3.8+incompatible
in loop test -
air-verse/air @v1.67.4
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/urfave/cli/v216310%
- github.com/hashicorp/consul1268%
- github.com/seaweedfs/seaweedfs1077%
- github.com/cadence-workflow/cadence845%
- github.com/uber/cadence845%
siblings
More from flag
The other most-called functions in this package. See all →