Versions in this module Expand all Collapse all v0 v0.1.49 Jul 20, 2024 Changes in this version + func NewPathResolver() *defaultPathResolver + type ConfigSource interface + Read func() ([]byte, error) + type EnvVarSource struct + VarName string + func (e *EnvVarSource) Read() ([]byte, error) + type FileSystemSource struct + FilePath string + func (f *FileSystemSource) Read() ([]byte, error) + type Loader struct + PathResolver PathResolver + func NewLoader(pathResolver PathResolver) *Loader + func (c *Loader) InitConfig(config any, configName, configFolderPath string) error + type Manager struct + func NewManager(parser Parser) *Manager + func (cm *Manager) AddSource(source ConfigSource) + func (cm *Manager) Load(config any) error + type Parser interface + Parse func(data []byte, out any) error + type PathResolver interface + GetDefaultConfigPath func() (string, error) + GetProjectRoot func() (string, error) + type YAMLParser struct + func (y *YAMLParser) Parse(data []byte, out any) error