Documentation ¶
Index ¶
- Variables
- func Bool(key string) (bool, error)
- func BoolOrDefault(key string, defaultValue bool) bool
- func Float32(key string) (float32, error)
- func Float32OrDefault(key string, defaultValue float32) float32
- func Float64(key string) (float64, error)
- func Float64OrDefault(key string, defaultValue float64) float64
- func Int(key string) (int, error)
- func Int32(key string) (int32, error)
- func Int32OrDefault(key string, defaultValue int32) int32
- func Int64(key string) (int64, error)
- func Int64OrDefault(key string, defaultValue int64) int64
- func IntOrDefault(key string, defaultValue int) int
- func MustBool(key string) bool
- func MustFloat32(key string) float32
- func MustFloat64(key string) float64
- func MustInt(key string) int
- func MustInt32(key string) int32
- func MustInt64(key string) int64
- func MustSecond(key string) time.Duration
- func MustString(key string) string
- func MustUint(key string) uint
- func MustUint32(key string) uint32
- func MustUint64(key string) uint64
- func Second(key string) (time.Duration, error)
- func SecondOrDefault(key string, defaultValue time.Duration) time.Duration
- func String(key string) (string, error)
- func StringOrDefault(key string, defaultValue string) string
- func Uint(key string) (uint, error)
- func Uint32(key string) (uint32, error)
- func Uint32OrDefault(key string, defaultValue uint32) uint32
- func Uint64(key string) (uint64, error)
- func Uint64OrDefault(key string, defaultValue uint64) uint64
- func UintOrDefault(key string, defaultValue uint) uint
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEnvironmentVariableIsEmpty = errors.New("env: environment variable is empty")
Functions ¶
func BoolOrDefault ¶
func Float32OrDefault ¶
func Float64OrDefault ¶
func Int32OrDefault ¶
func Int64OrDefault ¶
func IntOrDefault ¶
func MustFloat32 ¶
func MustFloat64 ¶
func MustSecond ¶
func MustString ¶
func MustUint32 ¶
func MustUint64 ¶
func StringOrDefault ¶
func Uint32OrDefault ¶
func Uint64OrDefault ¶
func UintOrDefault ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.