Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Known errors
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct{}
Environment provides a configuration source from the environment variables
func (Environment) Value ¶
func (e Environment) Value(ns []string, k string) interface{}
Value returns value of the environment variable which matches the key, if any. If not found, a second try is made using an upper-case version, substituting underscores for hypens.
type Map ¶
type Map map[string]interface{}
Map defines a source based on a standard map of interfaces with a string key.
func NewJSON ¶
NewJSON returns a new map source based on the JSON data stored in the reader.
func NewJSONFromFile ¶
NewJSONFromFile is a convenience function that creates a new JSON source from the file specified by filename.
func (Map) SetValue ¶
SetValue adds or replaces a value identified by the namespace and key
Click to show internal directories.
Click to hide internal directories.