os.UserHomeDir
standard libraryThe 966th most-called standard-library function by production calls. Called 818 times across 155 modules; 691 of those run outside tests and generated code.
3% in production calls vs 2026-W37 (674 → 691)
- prod calls
- 691
- non-test, non-generated
- all calls
- 818
- total callsites
- modules
- 155
- distinct callers
- in loop
- 2%
- of prod calls
- in tests
- 16%
- 127 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 UserHomeDir from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 8 1%
- Tailscale 8 1%
- Docker 7 1%
- GitHub CLI 6 <1%
- HashiCorp 3 <1%
where it's called
Callsites in the wild
12 representative callsites of 818, prioritizing in-loop and non-test usage. We link to source, never display it.
-
antonmedv/fx @v0.0.0-20260826144931-4f31cd3a0c5d
in loop - in loop
- in loop
-
coder/coder @v0.27.3
in loop - in loop
- in loop
- in loop
-
juicedata/juicefs @v1.4.1
in loop -
slimtoolkit/slim @v0.0.0-20260919234058-976805241c00
in loop -
steveyegge/beads @v1.3.0
in loop - in loop
-
go/tools @v0.8.1
staticcheck/sa9007/sa9007.go:95
in loop
top callers
The modules that reach for it
The modules that call UserHomeDir most in this snapshot.
- github.com/chenhg5/cc-connect749%
- github.com/gastownhall/gastown628%
- github.com/steveyegge/gastown628%
- github.com/gastownhall/beads577%
- github.com/steveyegge/beads577%
siblings
More from os
The other most-called functions in this package. See all →