Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultPrefixes = []string{}
)
Functions ¶
func NewSource ¶
NewSource returns a config source for parsing ENV variables. Underscores are delimiters for nesting, and all keys are lowercased.
Example:
"DATABASE_SERVER_HOST=localhost" will convert to { "database": { "server": { "host": "localhost" } } }
func WithPrefix ¶
WithPrefix sets the environment variable prefixes to scope to. These prefixes will not be removed. Each prefix will be considered a top level config entry.
func WithStrippedPrefix ¶
WithStrippedPrefix sets the environment variable prefixes to scope to. These prefixes will be removed from the actual config entries.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.