Versions in this module Expand all Collapse all v1 v1.0.0 Jul 18, 2018 Changes in this version + var Modifier = modifiers.New() + func EqualNode(n1 Node, n2 Node) bool + func Load(cfg interface{}) (args []string) + func LoadWith(cfg interface{}, ld Loader) (cmd string, args []string) + func SetPPROF(config PPROF) + type Array struct + func (a Array) DecodeValue(d objconv.Decoder) (err error) + func (a Array) EncodeValue(e objconv.Encoder) (err error) + func (a Array) Item(i int) Node + func (a Array) Items() []Node + func (a Array) Kind() NodeKind + func (a Array) Len() int + func (a Array) Set(s string) error + func (a Array) String() string + func (a Array) Value() interface{} + type Command struct + Help string + Name string + type FlagSource interface + Flag func() string + Help func() string + func NewFileSource(flag string, vars interface{}, readFile func(string) ([]byte, error), ...) FlagSource + type Loader struct + Args []string + Commands []Command + Name string + Sources []Source + Usage string + func (ld Loader) FprintError(w io.Writer, err error) + func (ld Loader) FprintHelp(w io.Writer, cfg interface{}) + func (ld Loader) Load(cfg interface{}) (cmd string, args []string, err error) + func (ld Loader) PrintError(err error) + func (ld Loader) PrintHelp(cfg interface{}) + type Map struct + func (m Map) DecodeValue(d objconv.Decoder) error + func (m Map) EncodeValue(e objconv.Encoder) error + func (m Map) Item(name string) Node + func (m Map) Items() []MapItem + func (m Map) Kind() NodeKind + func (m Map) Len() int + func (m Map) Scan(do func([]string, MapItem)) + func (m Map) Set(s string) error + func (m Map) String() string + func (m Map) Value() interface{} + type MapItem struct + Help string + Name string + Value Node + type Node interface + Kind func() NodeKind + Value func() interface{} + func MakeNode(v interface{}) Node + type NodeKind int + const ArrayNode + const MapNode + const ScalarNode + type PPROF struct + BlockProfileRate int + MutexProfileFraction int + func DefaultPPROF() PPROF + type Scalar struct + func (s Scalar) DecodeValue(d objconv.Decoder) error + func (s Scalar) EncodeValue(e objconv.Encoder) error + func (s Scalar) IsBoolFlag() bool + func (s Scalar) Kind() NodeKind + func (s Scalar) Set(str string) (err error) + func (s Scalar) String() string + func (s Scalar) Value() interface{} + type Source interface + Load func(dst Map) error + func NewEnvSource(prefix string, env ...string) Source + type SourceFunc func(dst Map) error + func (f SourceFunc) Load(dst Map) error