Documentation
¶
Index ¶
- type Loader
- func (l *Loader) Build() *Loader
- func (l *Loader) Flags() *flag.FlagSet
- func (l *Loader) Load(into interface{}) error
- func (l *Loader) LoadWithFiles(into interface{}, files []string) error
- func (l *Loader) SkipDefaults() *Loader
- func (l *Loader) SkipEnvironment() *Loader
- func (l *Loader) SkipFiles() *Loader
- func (l *Loader) SkipFlags() *Loader
- func (l *Loader) WithEnvPrefix(prefix string) *Loader
- func (l *Loader) WithFiles(files []string) *Loader
- func (l *Loader) WithFlagPrefix(prefix string) *Loader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader of user configuration.
func LoaderFor ¶ added in v0.2.1
func LoaderFor(src interface{}) *Loader
Loader creates a new Loader based on a config. Zero-value config is acceptable.
func (*Loader) LoadWithFiles ¶ added in v0.1.2
LoadWithFiles configuration into a given param.
func (*Loader) SkipDefaults ¶ added in v0.2.1
func (*Loader) SkipEnvironment ¶ added in v0.2.1
func (*Loader) WithEnvPrefix ¶ added in v0.2.1
func (*Loader) WithFlagPrefix ¶ added in v0.2.1
Directories
¶
Path | Synopsis |
---|---|
aconfigdotenv
module
|
|
aconfighcl
module
|
|
aconfigtoml
module
|
|
aconfigyaml
module
|
Click to show internal directories.
Click to hide internal directories.