os.TempDir
standard libraryThe 1095th most-called standard-library function by production calls. Called 1,921 times across 355 modules; 589 of those run outside tests and generated code.
- prod calls
- 589
- non-test, non-generated
- all calls
- 1,921
- total callsites
- modules
- 355
- distinct callers
- in loop
- 3%
- of prod calls
- in tests
- 69%
- 1,332 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 TempDir from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 32 5%
- Argo 21 4%
- VictoriaMetrics 14 2%
- Docker 12 2%
- Grafana 12 2%
where it's called
Callsites in the wild
12 representative callsites of 1,921, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
- in loop
-
coder/coder @v0.27.3
in loop - in loop
- in loop
-
ory/go-acc @v0.2.8
in loop -
pocketbase/pocketbase @v0.39.10
in loop - in loop
-
therecipe/qt @v0.0.0-20200904063919-c0c124a5770d
in loop - in loop
- in loop
top callers
The modules that reach for it
The modules that call TempDir most in this snapshot.
- github.com/drakkan/sftpgo22412%
- github.com/kubernetes/kubernetes653%
- github.com/ethereum/go-ethereum553%
- github.com/grafana/mimir402%
- github.com/coreos/etcd332%
siblings
More from os
The other most-called functions in this package. See all →