Documentation
¶
Index ¶
- func Exists(key string) bool
- func Getenv(key string, def string) string
- func GetenvBool(key string, def bool) (bool, error)
- func GetenvFloat(key string, def float64) (float64, error)
- func GetenvInt(key string, def int64) (int64, error)
- func GetenvStrings(key string, def []string) []string
- func MustExists(key string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetenvBool ¶
GetenvBool wraps os.Getenv and returns a bool or the given default if empty or not defined.
func GetenvFloat ¶
GetenvFloat wraps os.Getenv and returns an int or the given default if empty or not defined.
func GetenvInt ¶
GetenvInt wraps os.Getenv and returns an int or the given default if empty or not defined.
func GetenvStrings ¶
GetenvStrings wraps os.Getenv and returns a string slice or the given default if empty or not defined.
func MustExists ¶
func MustExists(key string)
MustExists panics if the given env var does not exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.