commit | b978440452434b0a3cac4e41b53291c6384febf8 | [log] [tgz] |
---|---|---|
author | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | Tue Aug 19 11:38:27 2014 -0700 |
committer | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | Tue Aug 19 11:38:27 2014 -0700 |
tree | 76529aeeff21fb66e4f2c26dfd613a59160a88c5 | |
parent | b40ba20d02a6cacebef0acd2ad9882807ab0b07d [diff] |
LICENSE
This is a Go library for detecting the user's home directory without the use of cgo, so the library can be used in cross-compilation environments.
Usage is incredibly simple, just call homedir.Dir()
to get the home directory for a user, and homedir.Expand()
to expand the ~
in a path to the home directory.