aconfigo

package
v0.0.0-...-7f3330f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 NewLoader

func NewLoader() *Loader

func (*Loader) For

func (l *Loader) For(cfg any) *aconfig.Loader

func (*Loader) WithAppName

func (l *Loader) WithAppName(appName string) *Loader

func (*Loader) WithConfig

func (l *Loader) WithConfig(config aconfig.Config) *Loader

func (*Loader) WithFile

func (l *Loader) WithFile(file string) *Loader

func (*Loader) WithFileDecoder

func (l *Loader) WithFileDecoder(decoder aconfig.FileDecoder) *Loader

func (*Loader) WithFiles

func (l *Loader) WithFiles(files []string) *Loader

func (*Loader) WithWalkFn

func (l *Loader) WithWalkFn(fn func(f aconfig.Field) bool) *Loader

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL