Documentation
¶
Overview ¶
Package env provides functionality for getting information and data from the environment.
Index ¶
Constants ¶
View Source
const ( // KeyConfigName is the environment variable key for specifying a different // configuration file name instead of the default. KeyConfigName = "CONFIG_NAME" // KeyPwd is the environment variable key for a stubbed working directory // used by tests. KeyPwd = "PWD" )
Variables ¶
This section is empty.
Functions ¶
func AbsPath ¶
AbsPath returns the absolute path for the given path.
Works like filepath.Abs except that it will expand the home directory if the path starts with "~".
If the path is already absolute, it will be returned as-is.
func Getenv ¶
Getenv retrieves the value of the environment variable named by the key.
Works like os.Getenv except that it will prefix the key with an application specific prefix to avoid conflicts with other environment variables.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.