Versions in this module Expand all Collapse all v0 v0.1.1 Apr 17, 2018 v0.1.0 Apr 10, 2018 Changes in this version + var DecoderTryAll = NewMultiFileDecoder([]FileDecoderFn{ ... }) + func Load(c interface{}, conf Conf) error + func LoadMap(c interface{}, vars map[string]interface{}, conf Conf) error + func LoadRawFile(c interface{}, fileContent []byte, conf Conf) error + func LoadWithMap(c interface{}, vars map[string]interface{}, conf Conf) error + func LoadWithRawFile(c interface{}, fileContent []byte, conf Conf) error + type Conf struct + ConfigFileVariable string + EnvDisable bool + EnvPrefix string + FileDecoder FileDecoderFn + FileDefaultFilename string + FileDisable bool + FlagDisable bool + FlagIgnoreUnknown bool + HelpDescription string + HelpDisable bool + HelpMessage string + type FileDecoderFn func(content []byte) (map[string]interface{}, error) + var DecoderJSON FileDecoderFn = func(c []byte) (map[string]interface{}, error) { ... } + var DecoderTOML FileDecoderFn = func(c []byte) (map[string]interface{}, error) { ... } + var DecoderYAML FileDecoderFn = func(c []byte) (map[string]interface{}, error) { ... } + func NewMultiFileDecoder(decoders []FileDecoderFn) FileDecoderFn