Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoolOrDefault ¶
GetBoolOrDefault returns the bool value of a given environment variable or the fallback value if the environment variable was not present. If the environment variable exists but its value cannot be parsed successfully into a bool value then the function will panic.
func GetDurationOrDefault ¶
GetDurationOrDefault returns the time.Duration value of a given environment variable or the fallback value if the environment variable was not present. If the environment variable exists but its value cannot be parsed successfully into a time.Duration object then the function will panic.
func GetIntOrDefault ¶
GetIntOrDefault returns the int value of a given environment variable or the fallback value if the environment variable was not present. If the environment variable exists but its value cannot be parsed successfully into an integer then the function will panic.
func GetOrDefault ¶
GetOrDefault returns the value of a given environment variable or the fallback value if the environment variable was not present.
Types ¶
This section is empty.