Documentation ¶
Overview ¶
Package env contains functions that retrieve data from the environment
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Getenv ¶
Getenv - retrieves the value of the environment variable named by the key. If the variable is unset, but the same variable ending in `_FILE` is set, the referenced file will be read into the value. Otherwise the provided default (or an emptry string) is returned.
func LookupEnv ¶ added in v4.2.0
LookupEnv - retrieves the value of the environment variable named by the key. If the variable is unset, but the same variable ending in `_FILE` is set, the referenced file will be read into the value. If the key is not set, the second return value will be false. Otherwise the provided default (or an emptry string) is returned.
Types ¶
This section is empty.