Versions in this module Expand all Collapse all v1 v1.5.1 Oct 30, 2023 Changes in this version + const DefaultSeparator + const TagEnv + const TagEnvDefault + const TagEnvDescription + const TagEnvLayout + const TagEnvPrefix + const TagEnvRequired + const TagEnvSeparator + const TagEnvUpd + func FUsage(w io.Writer, cfg interface{}, headerText *string, usageFuncs ...func()) func() + func GetDescription(cfg interface{}, headerText *string) (string, error) + func ParseJSON(r io.Reader, str interface{}) error + func ParseTOML(r io.Reader, str interface{}) error + func ParseYAML(r io.Reader, str interface{}) error + func ReadConfig(path string, cfg interface{}) error + func ReadEnv(cfg interface{}) error + func UpdateEnv(cfg interface{}) error + func Usage(cfg interface{}, headerText *string, usageFuncs ...func()) func() + type Setter interface + SetValue func(string) error + type StructMeta struct + func ReadStructMetadata(cfgRoot interface{}) ([]StructMeta, error) + func (sm *StructMeta) DefValue() *string + func (sm *StructMeta) EnvList() []string + func (sm *StructMeta) FieldName() string + type Updater interface + Update func() error