Versions in this module Expand all Collapse all v2 v2.0.0 Jun 14, 2023 Changes in this version + var RootBlocks = []RootBlock + func FindFlagsPrefix(flags []string) []string + func Flags(cfg flagext.Registerer) map[uintptr]*flag.Flag + type ConfigBlock struct + Desc string + Entries []*ConfigEntry + FlagsPrefix string + FlagsPrefixes []string + Name string + func Config(cfg interface{}, flags map[uintptr]*flag.Flag, rootBlocks []RootBlock) ([]*ConfigBlock, error) + func (b *ConfigBlock) Add(entry *ConfigEntry) + type ConfigEntry struct + Block *ConfigBlock + BlockDesc string + Element *ConfigBlock + FieldDefault string + FieldDesc string + FieldExample *FieldExample + FieldFlag string + FieldType string + Kind EntryKind + Name string + Required bool + Root bool + func (e ConfigEntry) Description() string + type EntryKind string + const KindBlock + const KindField + const KindMap + const KindSlice + type ExamplerConfig interface + ExampleDoc func() (comment string, yaml interface{}) + type FieldExample struct + Comment string + Yaml interface{} + type RootBlock struct + Desc string + Name string + StructType []reflect.Type