Documentation ¶ Index ¶ Variables func EnvSet(key, value string) error func Getenv(v string) string Constants ¶ This section is empty. Variables ¶ View Source var ( HOME string = Getenv("$HOME") PWD string = Getenv("$PWD") SHELL string = Getenv("$SHELL") GOPATH string = Getenv("$GOPATH") ) common shell environment variables Functions ¶ func EnvSet ¶ func EnvSet(key, value string) error func Getenv ¶ func Getenv(v string) string Getenv returns the value of the string while it replaces ${var} or $var in the string according to the values of the current environment variables. References to undefined variables are replaced by a the empty string. Types ¶ This section is empty. Source Files ¶ View all Source files envvars.go Click to show internal directories. Click to hide internal directories.