Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBoolEnv ¶
ParseBoolEnv gets the value of the environment variable envKey and, if set, parses it as a boolean. If the environment variable is unset, defaultValue is returned.
func ParseDuration ¶
ParseDuration parses value as a duration, appending defaultSuffix if value does not have one.
func ParseDurationEnv ¶
func ParseDurationEnv(envKey, defaultSuffix string, defaultDuration time.Duration) (time.Duration, error)
ParseDurationEnv gets the value of the environment variable envKey and, if set, parses it as a duration. If the value has no suffix, defaultSuffix is appended. If the environment variable is unset, defaultDuration is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.