flag.FlagSet.Set
standard libraryThe 6828th most-called standard-library method by production calls. Called 345 times across 37 modules; 89 of those run outside tests and generated code.
No change in production calls since 2026-W39.
- prod calls
- 89
- non-test, non-generated
- all calls
- 345
- total callsites
- modules
- 37
- distinct callers
- in loop
- 31%
- of prod calls
- in tests
- 74%
- 256 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.Set from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 18 20%
- containerd 10 11%
- Istio 6 7%
- KEDA 6 7%
- etcd 2 2%
where it's called
Callsites in the wild
12 representative callsites of 345, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
urfave/cli/v2 @v2.27.7
in loop -
k8s.io/kubernetes @v1.37.1
test/e2e_node/runner/node/node.go:213
in loop - in loop
- in loop
-
urfave/cli/v2 @v2.27.7
in loop - in loop
- in loop
-
urfave/cli/v2 @v2.27.7
in loop - in loop
- in loop
top callers
The modules that reach for it
The modules that call FlagSet.Set most in this snapshot.
- github.com/cadence-workflow/cadence8424%
- github.com/uber/cadence8424%
- k8s.io/klog/v2298%
- github.com/kubernetes/kubernetes175%
- github.com/urfave/cli/v2154%
siblings
More from flag
The other most-called members in this package. See all →