Documentation ¶
Overview ¶
Package env contains functions for dealing with environment variables
Index ¶
Constants ¶
View Source
const ShellExpandHelp = "\n\nLeading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`."
ShellExpandHelp describes what ShellExpand does for inclusion into help
Variables ¶
This section is empty.
Functions ¶
func CurrentUser ¶ added in v1.54.0
func CurrentUser() (userName string)
CurrentUser finds the current user name or "" if not found
func ShellExpand ¶
ShellExpand replaces a leading "~" with the home directory" and expands all environment variables afterwards.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.