Documentation ¶
Index ¶
- func ClearEnvCache()
- func EnvOrDefaultBool(name string, value bool) bool
- func EnvOrDefaultBytes(name string, value int64) int64
- func EnvOrDefaultDuration(name string, value time.Duration) time.Duration
- func EnvOrDefaultInt(name string, value int) int
- func EnvOrDefaultInt64(name string, value int64) int64
- func EnvOrDefaultString(name string, value string) string
- func GetEnvReport() string
- func VarName(name string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearEnvCache ¶
func ClearEnvCache()
ClearEnvCache clears saved environment values so that a new read access the environment again. (Used for testing)
func EnvOrDefaultBool ¶
EnvOrDefaultBool returns the value set by the specified environment variable, if any, otherwise the specified default value.
func EnvOrDefaultBytes ¶
EnvOrDefaultBytes returns the value set by the specified environment variable, if any, otherwise the specified default value.
func EnvOrDefaultDuration ¶
EnvOrDefaultDuration returns the value set by the specified environment variable, if any, otherwise the specified default value.
func EnvOrDefaultInt ¶
EnvOrDefaultInt returns the value set by the specified environment variable, if any, otherwise the specified default value.
func EnvOrDefaultInt64 ¶
EnvOrDefaultInt64 returns the value set by the specified environment variable, if any, otherwise the specified default value.
func EnvOrDefaultString ¶
EnvOrDefaultString returns the value set by the specified environment variable, if any, otherwise the specified default value.
func GetEnvReport ¶
func GetEnvReport() string
GetEnvReport dumps all configuration variables that may have been used and their value.
Types ¶
This section is empty.