Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBoolFromEnv ¶
ParseBoolFromEnv retrieves a boolean value from given environment envVar. Returns default value if envVar is not set.
func ParseDurationFromEnv ¶
ParseDurationFromEnv helper function to parse a time duration from an environment variable. Returns a default if env is not set, is not parseable to a duration, exceeds max (if max is greater than 0) or is less than min.
func ParseNumFromEnv ¶
ParseNumFromEnv helper function to parse a number from an environment variable. Returns a default if env is not set, is not parseable to a number, exceeds max (if max is greater than 0) or is less than min.
func StringFromEnv ¶
StringFromEnv returns the env variable for the given key and falls back to the given defaultValue if not set
Types ¶
This section is empty.