os/user.Current
standard libraryThe 1927th most-called standard-library function by production calls. Called 482 times across 202 modules; 317 of those run outside tests and generated code.
- prod calls
- 317
- non-test, non-generated
- all calls
- 482
- total callsites
- modules
- 202
- distinct callers
- in loop
- <1%
- of prod calls
- in tests
- 34%
- 164 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 482, 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.36.3
pkg/volume/csi/csi_attacher_test.go:1158
in loop test -
-
-
-
cockroachdb/cockroach @v19.2.12+incompatible
-
-
encr.dev @v1.57.13
pkg/xos/xos_unix.go:37
-
go-gitea/gitea @v1.27.1
top callers
The modules that reach for it
The modules that call Current most in this snapshot.
- github.com/netbirdio/netbird4910%
- github.com/gravitational/teleport122%
- github.com/codenotary/immudb102%
- github.com/coder/coder92%
- github.com/getsops/sops/v392%
siblings
More from os/user
The other most-called functions in this package. See all →