Documentation ¶ Index ¶ Variables func Read(obj interface{}, configFiles ...string) error type ReaderFunc type ValidatableConfiguration Constants ¶ This section is empty. Variables ¶ View Source var ( JSONReader = json.Unmarshal TOMLReader = toml.Unmarshal YAMLReader = func(data []byte, o interface{}) error { return yaml.Unmarshal(data, o) } ) Functions ¶ func Read ¶ func Read(obj interface{}, configFiles ...string) error Read deserializes each config file to the target obj using a Reader (depending on file extension) env vars are replaced in the config file as well as the file path Types ¶ type ReaderFunc ¶ type ReaderFunc func(data []byte, o interface{}) error type ValidatableConfiguration ¶ type ValidatableConfiguration interface { Validate() error } Source Files ¶ View all Source files config.go Directories ¶ Show internal Expand all Path Synopsis hook network systemdefaults Click to show internal directories. Click to hide internal directories.