Documentation ¶
Index ¶
- func Bool(name string, defaults ...bool) bool
- func Duration(name string, defaults ...time.Duration) time.Duration
- func E(fn interface{}, name string, val interface{}) e
- func Float32(name string, defaults ...float32) float32
- func Float64(name string, defaults ...float64) float64
- func Int(name string, defaults ...int) int
- func Int32(name string, defaults ...int32) int32
- func Int64(name string, defaults ...int64) int64
- func Int8(name string, defaults ...int8) int8
- func SetGlobalDefault(l ...e)
- func String(name string, defaults ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
Bool returns given registered environment variable and mark as used. `true` for those values: y, yes, true, 1; `false` for anything else.
func SetGlobalDefault ¶
func SetGlobalDefault(l ...e)
SetGlobalDefault register a environment variable global defaul value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.