flag.FlagSet.Lookup
standard libraryThe 3403rd most-called standard-library method by production calls. Called 266 times across 45 modules; 174 of those run outside tests and generated code.
- prod calls
- 174
- non-test, non-generated
- all calls
- 266
- total callsites
- modules
- 45
- distinct callers
- in loop
- 17%
- of prod calls
- in tests
- 35%
- 92 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 →
- Concrete method100%A method on a value whose type is known exactly.
who calls this
Notable callers
Production calls into FlagSet.Lookup from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 21 12%
- KubeVirt 12 7%
- Grafana 8 5%
- Consul 6 3%
- etcd 3 2%
where it's called
Callsites in the wild
12 representative callsites of 266, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
- in loop
- in loop
- in loop
-
urfave/cli @v1.22.17
in loop -
urfave/cli/v2 @v2.27.7
in loop - in loop
- in loop
- in loop
- in loop
-
tailscale.com @v1.102.2
cmd/tailscale/cli/ffcomplete/internal/complete.go:239
in loop
top callers
The modules that reach for it
The modules that call FlagSet.Lookup most in this snapshot.
- github.com/elastic/beats5721%
- github.com/urfave/cli/v24015%
- github.com/urfave/cli208%
- github.com/kubernetes/kubernetes197%
- github.com/kubevirt/kubevirt125%
siblings
More from flag
The other most-called members in this package. See all →