Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandTilde ¶ added in v0.18.4
ExpandTilde expands environment variables and a leading ~ or ~/ to the user's home directory. If the home directory cannot be determined, the original path is returned unchanged.
func RandStringBytes ¶
func UserHomeDir ¶
UserHomeDir returns the home directory for the executing user.
This extends the logic of os.UserHomeDir() with the now archived package github.com/mitchellh/go-homedir for compatibility.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.