Documentation ¶
Index ¶
- func Float(key string) float64
- func FloatDefault(key string, def float64) (val float64)
- func FloatDefaultF(key string, def func() float64) (val float64)
- func Int(key string) int
- func IntDefault(key string, def int) (val int)
- func IntDefaultF(key string, def func() int) (val int)
- func String(key string) string
- func StringDefault(key, def string) (val string)
- func StringDefaultF(key string, def func() string) (val string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float ¶
Get a float from the environment, panicking if it's not present or doesn't parse properly
func FloatDefault ¶
Get a float from the environment, returning the default if it's not present or doesn't parse properly
func FloatDefaultF ¶
Get a float from the environment, returning the result of the default function if it's not present or doesn't parse properly
func IntDefault ¶
Get an int from the environment, returning the default if it's not present or doesn't parse properly
func IntDefaultF ¶
Get an int from the environment, returning the result of the default function if it's not present or doesn't parse properly
func StringDefault ¶
Get a string from the environment, returning the default if it's not present
func StringDefaultF ¶
Get a string from the environment, returning the result of the default function if it's not present
Types ¶
This section is empty.