Versions in this module Expand all Collapse all v1 v1.0.1 Nov 16, 2021 v1.0.0 Apr 24, 2020 Changes in this version + var ErrFileNotFound = errors.New("config file not found") + var ErrSourceNotSet = errors.New("config path or reader is not set") + func MustLoad(conf interface{}) + func MustLoadWithPath(path string, conf interface{}) + type DefaultLoader struct + func New() *DefaultLoader + func NewWithPath(path string) *DefaultLoader + func (d *DefaultLoader) MustLoad(conf interface{}) + func (d *DefaultLoader) MustValidate(conf interface{}) + type EnvironmentLoader struct + CamelCase bool + Prefix string + func (e *EnvironmentLoader) Load(s interface{}) error + func (e *EnvironmentLoader) PrintEnvs(s interface{}) + type FlagLoader struct + Args []string + CamelCase bool + EnvPrefix string + ErrorHandling flag.ErrorHandling + FlagUsageFunc func(name string) string + Flatten bool + Prefix string + func (f *FlagLoader) Load(s interface{}) error + type JSONLoader struct + Path string + Reader io.Reader + func (j *JSONLoader) Load(s interface{}) error + type Loader interface + Load func(s interface{}) error + func MultiLoader(loader ...Loader) Loader + type RequiredValidator struct + TagName string + TagValue string + func (e *RequiredValidator) Validate(s interface{}) error + type TOMLLoader struct + Path string + Reader io.Reader + func (t *TOMLLoader) Load(s interface{}) error + type TagLoader struct + DefaultTagName string + func (t *TagLoader) Load(s interface{}) error + type Validator interface + Validate func(s interface{}) error + func MultiValidator(validators ...Validator) Validator + type YAMLLoader struct + Path string + Reader io.Reader + func (y *YAMLLoader) Load(s interface{}) error