Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandHome ¶
ExpandHome expands a leading ~ to the user's home directory. Only expands "~" or "~/..." -- not "~username/..." forms. A path whose home cannot be resolved is returned unchanged.
func ExpandHomeE ¶ added in v0.60.0
ExpandHomeE is ExpandHome for callers that must report an unresolvable home directory instead of using the literal path. The error is the one os.UserHomeDir returned, unwrapped, so callers phrase it themselves.
func XDGConfigHome ¶ added in v0.60.0
func XDGConfigHome() string
XDGConfigHome returns $XDG_CONFIG_HOME, or ~/.config when it is unset.
func XDGDataHome ¶ added in v0.60.0
func XDGDataHome() string
XDGDataHome returns $XDG_DATA_HOME, or ~/.local/share when it is unset.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.