Versions in this module Expand all Collapse all v1 v1.0.0 Dec 26, 2018 Changes in this version + const TagDefault + const TagDescription + const TagInject + const TagInjectAs + const TagKey + var Args = NewArgsProvider() + var DefaultParsers = []Parser + var Env = NewEnvProvider() + func AddHooks(hooks ...Hook) + func AddParsers(parsers ...Parser) + func AddProviders(providers ...Provider) + func Configure(s interface{}) error + func Initialize(field *Field) error + type ArgsProvider struct + Args map[string]string + func NewArgsProvider() (p *ArgsProvider) + func (ArgsProvider) Name() string + func (ArgsProvider) Priority() int + func (p *ArgsProvider) Retrieve(key string) (value string, found bool, err error) + type EnvProvider struct + Env map[string]string + func NewEnvProvider() (p *EnvProvider) + func (EnvProvider) FormatKey(key string) (env string) + func (EnvProvider) Name() string + func (EnvProvider) Priority() int + func (p *EnvProvider) Retrieve(key string) (value string, found bool, err error) + type Field struct + Children []*Field + Configurable bool + ConfigurationKey string + Key string + Parent *Field + Path string + StructField *reflect.StructField + Tags *structtag.Tags + Value reflect.Value + func (f *Field) FullTag(name string) (string, bool) + func (f *Field) Inject(s *Field) (err error) + func (f *Field) IsAnonymous() bool + func (f *Field) IsLeaf() bool + func (f *Field) Tag(name string) (string, bool) + type Hook func(field *Field) error + type Initializable interface + Init func() error + type Parser interface + CanParse func(reflect.Type) bool + Parse func(reflect.Type, string) (reflect.Value, error) + type ParserFunc struct + Func func(reflect.Type, string) (reflect.Value, error) + Type reflect.Type + func (p ParserFunc) CanParse(typ reflect.Type) bool + func (p ParserFunc) Parse(typ reflect.Type, raw string) (val reflect.Value, err error) + type Processor struct + func NewProcessor(hooks ...Hook) *Processor + func (p *Processor) AddHooks(hooks ...Hook) + func (p *Processor) Process(s interface{}) error + type Provider interface + Name func() string + Priority func() int + Retrieve func(key string) (value string, found bool, err error) + type Repository struct + func (r *Repository) AddParsers(parsers ...Parser) + func (r *Repository) AddProviders(providers ...Provider) + func (r *Repository) Hook(f *Field) (err error) + func (r *Repository) Parse(typ reflect.Type, parameter string) (val reflect.Value, err error) + func (r *Repository) Retrieve(key string) (value, provider string, found bool, err error)