Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Abs ¶
Abs returns an absolute representation of path. If the path is not absolute it will be joined with the current working directory to turn it into an absolute path. Abs calls Clean on the result. Abs also resolves user home directories and environment variables.
func ExpandEnv ¶
ExpandEnv replaces ${var} or $var in the string according to the values of the current environment variables. References to undefined variables are replaced by the empty string.
func ExpandUser ¶
ExpandUser tries to replace "~" or "~username" in the string to match the correspending user's home directory. If the wanted user does not exist, this function returns an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.