Versions in this module Expand all Collapse all v0 v0.1.0 Jan 2, 2026 Changes in this version + func LoadAndValidate(configPointer any, programName string, opts ...Option) error + func MarshalAsMap(configPointer any) (map[string]any, error) + func MarshalAsSlogDict(configPointer any, groupName string) (slog.Attr, error) + func MustLoadAndValidate(configPointer any, programName string, opts ...Option) + func NewMapSource(name string, m map[any]any) cli.MapSource + func NewTomlFileSource(name string, file string) (cli.MapSource, error) + func NewValueSourceFromMaps(key string, sources ...cli.MapSource) cli.ValueSource + type Option func(opts *options) + func WithDefaultLoadConfigFlag() Option + func WithDescription(description string) Option + func WithLoadConfigFlag(flagName string) Option + func WithLongDescription(usage string) Option + func WithShellCompletions() Option + func WithVersion(version string) Option + type StructReflector interface + Apply func(*cli.Command) + Flags func() []cli.Flag + func NewStructConfigurator(anyStruct any, tomlSources []cli.MapSource) (StructReflector, error)