Documentation ¶
Index ¶
- Constants
- type Loader
- func (l *Loader) For(cfg any) *aconfig.Loader
- func (l *Loader) WithAppName(appName string) *Loader
- func (l *Loader) WithConfig(config aconfig.Config) *Loader
- func (l *Loader) WithFile(file string) *Loader
- func (l *Loader) WithFileDecoder(decoder aconfig.FileDecoder) *Loader
- func (l *Loader) WithFiles(files []string) *Loader
- func (l *Loader) WithWalkFn(fn func(f aconfig.Field) bool) *Loader
Constants ¶
View Source
const ( NamedConfig = "aconfig.Config" NamedWalkFn = "aconfig.WalkFn" GroupFileDecoders = "aconfig.FileDecoders" NamedConfigLoaderFlags = "aconfig.Loader.Flags" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loader ¶
type Loader struct { AppName string Files []string Config aconfig.Config WalkFn func(f aconfig.Field) bool FileDecoders map[string]aconfig.FileDecoder }
func (*Loader) WithAppName ¶
func (*Loader) WithFileDecoder ¶
func (l *Loader) WithFileDecoder(decoder aconfig.FileDecoder) *Loader
Click to show internal directories.
Click to hide internal directories.