Versions in this module Expand all Collapse all v1 v1.0.1 Nov 10, 2024 Changes in this version + const CLIDelimiter + const ENVDelimiter + const LoggingDisabled + func Config[T any](suppliedOptions ...OptionFunc) (result T, warnings []error, err error) + func GetGeneratedCliFlagsWithTransform[T any](delimiter string, transformFunc Transform) []string + func GetGeneratedCliFlags[T any](delimiter string) []string + func GetGeneratedEnvWithTransform[T any](delimiter string, transformFunc Transform) []string + func GetGeneratedEnv[T any](delimiter string) []string + func LoadCliWithTransform[T any](delimiter string, transform func(string) string) (result T, err error) + func LoadCli[T any](delimiter string) (result T, err error) + func LoadConfigBytes[T any](data []byte, strict bool, configType ConfigType) (result T, err error) + func LoadConfigFileAuto[T any](path string, strict bool) (result T, err error) + func LoadConfigFile[T any](path string, strict bool, configType ConfigType) (result T, err error) + func LoadEnvWithTransform[T any](delimiter string, transform func(string) string) (result T, err error) + func LoadEnv[T any](delimiter string) (result T, err error) + type ConfigType string + const Auto + const Json + const Toml + const Yaml + type OptionFunc func(*options) error + func Defaults(cliFlag, defaultPath string) OptionFunc + func DefaultsFromPath(path string) OptionFunc + func FromCli(delimiter string) OptionFunc + func FromConfigBytes(data []byte, configType ConfigType) OptionFunc + func FromConfigFile(path string, configType ConfigType) OptionFunc + func FromConfigFileFlagPath(cliFlagName, defaultPath, description string, configType ConfigType) OptionFunc + func FromConfigURL(urlOpt string, configType ConfigType) OptionFunc + func FromEnvs(delimiter string) OptionFunc + func WithCliTransform(t Transform) OptionFunc + func WithConfigRequired() OptionFunc + func WithEnvTransform(t Transform) OptionFunc + func WithLogLevel(logLevel slog.Level) OptionFunc + func WithNonStructCliFlag() OptionFunc + func WithStrictParsing() OptionFunc + type TextSlice struct + func (s *TextSlice) Set(value string) error + func (s *TextSlice) String() string + type Transform func(generated string) string v1.0.0 Nov 9, 2024