Documentation
¶
Index ¶
- func GetBool(name string, defaultValue ...bool) bool
- func GetFloat(name string, defaultValue ...float64) float64
- func GetInt(name string, defaultValue ...int) int
- func GetString(name string, defaultValue ...string) string
- func MustGetBool(name string) bool
- func MustGetFloat(name string) float64
- func MustGetInt(name string) int
- func MustGetString(name string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustGetBool ¶
MustGetBool extracts a Bool value from the given environment variable. It exits the application if not present.
func MustGetFloat ¶
MustGetFloat extracts a Float value from the given environment variable. It exits the application if not present.
func MustGetInt ¶
MustGetInt extracts an Int value from the given environment variable. It exits the application if not present.
func MustGetString ¶
MustGetString extracts a String value from the given environment variable. It panics if not present.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.