Documentation
¶
Index ¶
- func Bool(name string, fallback ...bool) bool
- func Duration(name string, fallback ...time.Duration) time.Duration
- func E(fn any, name string, val any) anydeprecated
- func Float32(name string, fallback ...float32) float32
- func Float64(name string, fallback ...float64) float64
- func Int(name string, fallback ...int) int
- func Int16(name string, fallback ...int16) int16
- func Int32(name string, fallback ...int32) int32
- func Int64(name string, fallback ...int64) int64
- func Int8(name string, fallback ...int8) int8
- func SetGlobalDefault(...any)deprecated
- func Slice[T slices](name string, separator string, fallback ...T) T
- func String(name string, fallback ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
Bool returns given environment variable as boolean. Returns `true` for if any of options: y, yes, true, 1; Returns `false` for anything else.
func SetGlobalDefault
deprecated
func SetGlobalDefault(...any)
SetGlobalDefault was used to set a global default for a given environment variable.
Deprecated: Global defaults is a bad idea
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.