flag.NArg
standard libraryThe 2934th most-called standard-library function by production calls. Called 207 times across 93 modules; 203 of those run outside tests and generated code.
- prod calls
- 203
- non-test, non-generated
- all calls
- 207
- total callsites
- modules
- 93
- distinct callers
- in loop
- 0%
- of prod calls
- in tests
- 0%
- 0 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 NArg from notable Go projects. Open one on the map to see what else it hammers.
- Go (golang.org/x) 22 11%
- Tailscale 6 3%
- Grafana 4 2%
- Cilium 2 <1%
- CockroachDB 2 <1%
where it's called
Callsites in the wild
12 representative callsites of 207, prioritizing in-loop and non-test usage. We link to source, never display it.
-
-
-
cockroachdb/cockroach @v19.2.12+incompatible
-
-
-
docker/distribution @v2.8.3+incompatible
-
filippo.io/age @v1.3.1
cmd/age-inspect/inspect.go:51
-
-
-
-
FiloSottile/mkcert @v1.4.4
-
top callers
The modules that reach for it
The modules that call NArg most in this snapshot.
- github.com/u-root/u-root136%
- github.com/tinygo-org/tinygo105%
- github.com/unknwon/the-way-to-go_ZH_CN105%
- golang.org/x/tools84%
- github.com/sagernet/tailscale63%
siblings
More from flag
The other most-called functions in this package. See all →