Documentation
¶
Index ¶
- func CanGet(key string, def string) string
- func CanGetBool(key string, def bool) bool
- func CanGetInt(key string, def int) int
- func CanGetInt32(key string, def int32) int32
- func CanGetInt64(key string, def int64) int64
- func CanGetSlice(key string, def []string) []string
- func MustGet(key string) string
- func MustGetBool(key string) bool
- func MustGetFromFile(filename string) string
- func MustGetInt(key string) int
- func MustGetInt32(key string) int32
- func MustGetInt64(key string) int64
- func MustGetSecretFromEnv(env string) string
- func MustGetSecretFromFile(filename string) string
- func MustGetSecretUint64FromEnv(env string) uint64
- func MustGetSecretUint64FromFile(filename string) uint64
- func MustGetSlice(key string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanGetBool ¶ added in v0.0.4
func CanGetInt32 ¶
func CanGetInt64 ¶ added in v0.1.0
func CanGetSlice ¶ added in v0.0.3
func MustGet ¶
MustGet will return the env or panic if it is not present.
It will also check if the key exists with _FILE at the end, if a key exists like that, the value from the file will be loaded.
func MustGetBool ¶
MustGetBool will return the env as boolean or panic if it is not present
func MustGetFromFile ¶ added in v0.1.0
func MustGetInt ¶ added in v0.1.0
MustGetInt will return the env as int or panic if it is not present
func MustGetInt32 ¶
MustGetInt32 will return the env as int or panic if it is not present
func MustGetInt64 ¶
MustGetInt64 will return the env as int64 or panic if it is not present
func MustGetSecretFromEnv ¶
func MustGetSecretFromFile ¶
func MustGetSlice ¶ added in v0.0.3
Types ¶
This section is empty.