os/user.Current
standard libraryThe 1981st most-called standard-library function by production calls. Called 480 times across 202 modules; 312 of those run outside tests and generated code.
1% in production calls vs 2026-W37 (314 → 312)
- prod calls
- 312
- non-test, non-generated
- all calls
- 480
- total callsites
- modules
- 202
- distinct callers
- in loop
- <1%
- of prod calls
- in tests
- 35%
- 167 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 Current from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 25 8%
- CockroachDB 7 2%
- Docker 5 2%
- InfluxDB 4 1%
- Argo 3 <1%
where it's called
Callsites in the wild
12 representative callsites of 480, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
- in loop test
- in loop test
-
k8s.io/kubernetes @v1.37.0
pkg/volume/csi/csi_attacher_test.go:1158
in loop test -
-
-
-
cockroachdb/cockroach @v19.2.12+incompatible
-
-
encr.dev @v1.58.6
pkg/xos/xos_unix.go:37
-
go-gitea/gitea @v1.27.3
top callers
The modules that reach for it
The modules that call Current most in this snapshot.
- github.com/netbirdio/netbird419%
- github.com/gravitational/teleport123%
- github.com/BishopFox/sliver102%
- github.com/bishopfox/sliver102%
- github.com/codenotary/immudb102%
siblings
More from os/user
The other most-called functions in this package. See all →