Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOrDefault ¶ added in v1.17.4
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 ¶ added in v1.17.4
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 ¶ added in v1.17.4
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.