flag.PrintDefaults
standard libraryThe 2458th most-called standard-library function by production calls. Called 253 times across 148 modules; 246 of those run outside tests and generated code.
- prod calls
- 246
- non-test, non-generated
- all calls
- 253
- total callsites
- modules
- 148
- distinct callers
- in loop
- <1%
- of prod calls
- in tests
- 1%
- 3 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 PrintDefaults from notable Go projects. Open one on the map to see what else it hammers.
- Go (golang.org/x) 23 9%
- NATS 7 3%
- Kubernetes 5 2%
- Grafana 4 2%
- Tailscale 4 2%
where it's called
Callsites in the wild
12 representative callsites of 253, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
liamstask/goose @v0.0.0-20150115234039-8488cc47d90c
cmd/goose/main.go:62
-
-
cockroachdb/cockroach @v19.2.12+incompatible
-
-
-
docker/distribution @v2.8.3+incompatible
-
fyne.io/fyne @v1.4.3
cmd/fyne/main.go:116
-
Binject/debug @v0.0.0-20260128230015-4e22595eaac6
-
-
CodisLabs/codis @v0.0.0-20181104082235-de1ad026e329
-
top callers
The modules that reach for it
The modules that call PrintDefaults most in this snapshot.
- golang.org/x/tools166%
- github.com/nats-io/nats.go73%
- github.com/couchbase/go-couchbase62%
- github.com/facebookincubator/nvdtools62%
- github.com/google/gvisor62%
siblings
More from flag
The other most-called functions in this package. See all →