Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOrDefault ¶
GetOrDefault returns the value of the environment variable for the given key, or the default value if the environment variable is not set. A value of "" will only be returned if allowEmpty is true. Otherwise, the empty value is ignored and the default is returned.
func IsEnvDefined ¶
IsEnvDefined returns true if a given environment variable has any value
func IsEnvTruthy ¶
IsEnvTruthy returns true if a given environment variable has a truthy value Examples of truthy values are: "1", "t", "T", "true", "TRUE", "True". Anything else is considered false.
func IsTruthyValue ¶
IsTruthyValue returns true if a given value is "truthy". Examples of truthy values are: "1", "t", "T", "true", "TRUE", "True". Anything else is considered false.
func LookupOrDefault ¶
LookupOrDefault returns the value of the environment variable for the given key, or the default value if the environment variable is not set. Also returns whether the value existed.
Types ¶
This section is empty.