Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadConfig ¶
func ReadConfig(configReader ConfigReader, obj interface{}, configFiles ...string) error
ReadConfig deserializes each configfile to the target obj using the configReader env vars are replaced in the file path
Types ¶
type ConfigReader ¶
type ConfigReaderFunc ¶
func (ConfigReaderFunc) Unmarshal ¶
func (c ConfigReaderFunc) Unmarshal(data []byte, o interface{}) error
type ValidateableConfiguration ¶
type ValidateableConfiguration interface {
Validate() error
}
Click to show internal directories.
Click to hide internal directories.