Versions in this module Expand all Collapse all v1 v1.0.2 May 11, 2023 v1.0.1 May 11, 2023 v1.0.0 May 11, 2023 Changes in this version + const DefaultConfigFormat + const DefaultConfigPath + const DefaultProfile + var ErrFormatNotSupported = errors.New("config format is not supported") + func MapStructurePlaceholderValueHook() mapstructure.DecodeHookFunc + type AppProperties struct + Name string + Path string + Port int + func NewAppProperties(loader Loader) (*AppProperties, error) + func (a AppProperties) Prefix() string + type DebugFunc func(msgFormat string, args ...interface{}) + type DefaultProfileReader struct + func NewDefaultProfileReader(scanPaths []string, format string, delim string) (*DefaultProfileReader, error) + func (p DefaultProfileReader) Read(profile string) (map[string]interface{}, error) + type Loader interface + Bind func(properties ...Properties) error + func NewLoader(option Option, properties []Properties) (Loader, error) + type Option struct + ActiveProfiles []string + ConfigFormat string + ConfigPaths []string + DebugFunc DebugFunc + KeyDelimiter string + type ProfileReader interface + Read func(profile string) (map[string]interface{}, error) + type Properties interface + Prefix func() string + type PropertiesPostBinding interface + PostBinding func() error + type PropertiesPreBinding interface + PreBinding func() error + type ViperLoader struct + func (l *ViperLoader) Bind(propertiesList ...Properties) error