flag.Set
standard libraryThe 4841st most-called standard-library function by production calls. Called 178 times across 46 modules; 122 of those run outside tests and generated code.
- prod calls
- 122
- non-test, non-generated
- all calls
- 178
- total callsites
- modules
- 46
- distinct callers
- in loop
- 2%
- of prod calls
- in tests
- 31%
- 56 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 Set from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 80 66%
- Argo 8 7%
- VictoriaMetrics 4 3%
- Helm 2 2%
- Kyverno 1 <1%
where it's called
Callsites in the wild
12 representative callsites of 178, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
k8s.io/kubernetes @v1.36.3
test/e2e/framework/internal/unittests/helpers.go:37
in loop - in loop test
-
k8s.io/kubernetes @v1.36.3
test/e2e/framework/skipper/skipper_test.go:68
in loop test - in loop test
-
k8s.io/kubernetes @v1.36.3
test/e2e/framework/internal/unittests/cleanup/cleanup_test.go:226
in loop test -
k8s.io/apiserver @v0.36.3
pkg/storage/value/transformer_test.go:335
in loop test -
kubernetes/kubernetes @master
staging/src/k8s.io/apiserver/pkg/storage/value/transformer_test.go:335 ↗
in loop test -
k8s.io/client-go @v0.36.3
rest/request_test.go:2407
in loop test - in loop test
- in loop test
-
argoproj/pkg @v0.13.6
top callers
The modules that reach for it
The modules that call Set most in this snapshot.
- github.com/kubernetes/kubernetes2816%
- github.com/kubernetes/kops2112%
- k8s.io/kops2112%
- k8s.io/code-generator116%
- k8s.io/kubernetes116%
siblings
More from flag
The other most-called functions in this package. See all →