Registry / utility / mitchellh-go-homedir

mitchellh-go-homedir

JSON →
library1.1.0gogounverified

Package homedir provides functions to detect and expand the user's home directory.

go get github.com/mitchellh/go-homedir
INSTALL
IMPORT
SIG · MITCHELLH-GO-HOMED
M
mitchellh-go-homedir
utilitygov1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

homedir
github.com/mitchellh/go-homedir

Get the current user's home directory

package main import ( "fmt" "github.com/mitchellh/go-homedir" ) func main() { dir, err := homedir.Dir() if err != nil { panic(err) } fmt.Println(dir) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
mitchellh-go-homedir — go get mitchellh-go-homedir · libregistry