Documentation ¶
Index ¶
- func Exists(key string) bool
- func Get(key, fallback string) string
- func GetBool(key string, fallback bool) bool
- func GetFloat64(key string, fallback float64) float64
- func GetInt(key string, fallback int) int
- func GetInt64(key string, fallback int64) int64
- func GetIntSlice(key string, fallback []int) []int
- func GetStringSlice(key string, fallback []string) []string
- func MustExists(key string)
- func MustGet(key string) string
- func MustGetBool(key string) bool
- func MustGetFloat64(key string) float64
- func MustGetGetIntSlice(key string) []int
- func MustGetInt(key string) int
- func MustGetInt64(key string) int64
- func MustGetStringSlice(key string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFloat64 ¶ added in v0.10.21
GetFloat64 env var or fallback as float64
func GetIntSlice ¶
GetIntSlice env var or fallback as []string
func GetStringSlice ¶
GetStringSlice env var or fallback as []string
func MustGetFloat64 ¶ added in v0.10.21
MustGetFloat64 env var as float64 or panic
func MustGetGetIntSlice ¶
MustGetGetIntSlice env var as bool or panic
func MustGetInt64 ¶ added in v0.10.21
MustGetInt64 env var as int64 or panic
func MustGetStringSlice ¶
MustGetStringSlice env var as bool or panic
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.