os.Exit
standard libraryThe 121st most-called standard-library function by production calls. Called 11,223 times across 834 modules; 8,280 of those run outside tests and generated code.
2% in production calls vs 2026-W37 (8,435 → 8,280)
- prod calls
- 8,280
- non-test, non-generated
- all calls
- 11,223
- total callsites
- modules
- 834
- distinct callers
- in loop
- 6%
- of prod calls
- in tests
- 26%
- 2,913 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 Exit from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 581 7%
- Argo 299 4%
- Grafana 214 3%
- Cilium 156 2%
- Go (golang.org/x) 116 1%
where it's called
Callsites in the wild
12 representative callsites of 11,223, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
cilium/cilium @v1.20.2
in loop -
cockroachdb/cockroach @v19.2.12+incompatible
in loop -
miekg/dns @v0.6.114
cmd/atomdns/handlers/kill/setup.go:28
in loop - in loop
- in loop
-
docker/docker @v28.5.2+incompatible
in loop -
encr.dev @v1.58.6
cli/cmd/encore/check.go:103
in loop -
etcd-io/etcd @v2.3.8+incompatible
in loop -
cli/cli @v1.14.0
in loop - in loop
top callers
The modules that reach for it
The modules that call Exit most in this snapshot.
- github.com/vitessio/vitess3873%
- vitess.io/vitess3873%
- github.com/kubernetes/kubernetes3003%
- github.com/google/gvisor2512%
- k8s.io/kubernetes2442%
siblings
More from os
The other most-called functions in this package. See all →