Documentation ¶ Index ¶ Variables func Help(w io.Writer, c CfgMap) func Parse(c CfgMap) error func PrintableConfig(c CfgMap) []string type CfgMap type Config type PrintMode Constants ¶ This section is empty. Variables ¶ View Source var Align = 0 // Cleartext alignment, if not set it is autodetected Functions ¶ func Help ¶ func Help(w io.Writer, c CfgMap) func Parse ¶ func Parse(c CfgMap) error func PrintableConfig ¶ func PrintableConfig(c CfgMap) []string Types ¶ type CfgMap ¶ type CfgMap map[string]Config type Config ¶ type Config struct { Value any // Value DefaultValue any // Default value if Value is not set Help string // One line help Print PrintMode // Print mode Required bool // If true, error out with error Parse func(envValue string) (any, error) } type PrintMode ¶ type PrintMode int const ( PrintSecret PrintMode = iota PrintAll PrintNothing ) Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.