Documentation ¶
Overview ¶
Package env implements a koanf.Provider that reads environment variables as conf maps.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NumberKeysMapToSlice ¶
func NumberKeysMapToSlice(input interface{}) interface{}
NumberKeysMapToSlice converts a map with all keys as numbers to a slice recursively.
Example:
{ "a": { "0": 1, "1": 2 } } => { "a": [1, 2] }
Types ¶
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
Env implements an environment variables provider.
func Provider ¶
Provider returns an environment variables provider that reads environment variables with the given prefix.
Click to show internal directories.
Click to hide internal directories.