Documentation ¶
Overview ¶
Package path provides functions for manipulating file paths
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StripTrailingSlashes ¶
StripTrailingSlashes If the path ends with a slash, remove it - path: the path to strip - returns: the path with the trailing slash removed
func UserHomeDir ¶
func UserHomeDir() string
If the OS is Windows, return the HOMEDRIVE and HOMEPATH environment variables concatenated together. If the OS is Linux, return the XDG_CONFIG_HOME environment variable. Otherwise, return the HOME environment variable
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.