Documentation ¶
Index ¶
- func GetBool(key string, defaultValue bool) bool
- func GetBoolSlice(key, sep string, defaultValue []bool) []bool
- func GetBytes(key string, defaultValue []byte) []byte
- func GetDuration(key string, defaultValue int64, duration time.Duration) time.Duration
- func GetFloat32(key string, defaultValue float32) float32
- func GetFloat32Slice(key, sep string, defaultValue []float32) []float32
- func GetFloat64(key string, defaultValue float64) float64
- func GetFloat64Slice(key, sep string, defaultValue []float64) []float64
- func GetInt(key string, defaultValue int) int
- func GetInt32(key string, defaultValue int32) int32
- func GetInt32Slice(key, sep string, defaultValue []int32) []int32
- func GetInt64(key string, defaultValue int64) int64
- func GetInt64Slice(key, sep string, defaultValue []int64) []int64
- func GetIntSlice(key, sep string, defaultValue []int) []int
- func GetString(key, defaultValue string) string
- func GetStringSlice(key, sep string, defaultValue []string) []string
- func GetUint(key string, defaultValue uint) uint
- func GetUint32(key string, defaultValue uint32) uint32
- func GetUint32Slice(key, sep string, defaultValue []uint32) []uint32
- func GetUint64(key string, defaultValue uint64) uint64
- func GetUint64Slice(key, sep string, defaultValue []uint64) []uint64
- func GetUintSlice(key, sep string, defaultValue []uint) []uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoolSlice ¶ added in v0.2.0
GetBoolSlice returns a boolean slice from environment variable or default value
func GetDuration ¶ added in v0.3.0
GetDuration returns a time.Duration value from environment variable or default value
func GetFloat32 ¶
GetFloat32 returns a float32 value from environment variable or default value
func GetFloat32Slice ¶ added in v0.2.0
GetFloat32Slice returns a float32 slice from environment variable or default value
func GetFloat64 ¶
GetFloat64 returns a float64 value from environment variable or default value
func GetFloat64Slice ¶ added in v0.2.0
GetFloat64Slice returns a float64 slice from environment variable or default value
func GetInt32Slice ¶ added in v0.2.0
GetInt32Slice returns a int32 slice from environment variable or default value
func GetInt64Slice ¶ added in v0.2.0
GetInt64Slice returns a int64 slice from environment variable or default value
func GetIntSlice ¶ added in v0.2.0
GetIntSlice returns a int slice from environment variable or default value
func GetStringSlice ¶ added in v0.2.0
GetStringSlice returns a string slice from environment variable or default value
func GetUint ¶ added in v0.4.0
GetUint returns a uint value from environment variable or default value
func GetUint32 ¶ added in v0.4.0
GetUint32 returns a uint32 value from environment variable or default value
func GetUint32Slice ¶ added in v0.4.0
GetUint32Slice returns a uint32 slice from environment variable or default value
func GetUint64 ¶ added in v0.4.0
GetUint64 returns a uint64 value from environment variable or default value
func GetUint64Slice ¶ added in v0.4.0
GetUint64Slice returns a uint64 slice from environment variable or default value
func GetUintSlice ¶ added in v0.4.0
GetUintSlice returns a uint slice from environment variable or default value
Types ¶
This section is empty.