Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnv ¶
GetEnv retrieves the value of an environment variable having the specified key. If the value is empty string, a specified default is returned instead.
func MustGetEnv ¶
MustGetEnv retrieves the value of an environment variable having the specified key. If the value is empty string, a specified default is returned instead. It will panic if the defaultValue is empty too.
func MustGetEnvAsBool ¶
MustGetEnvAsBool attempts to parse a bool from a string value retrieved from the specified environment variable. If the environment variable is undefined, the specified default value is returned instead. If the environment variable is defined and its value cannot successfully be parsed as a bool, the function panics.
Types ¶
This section is empty.