Versions in this module Expand all Collapse all v0 v0.0.1 Nov 25, 2022 Changes in this version + func IsExplicitlySet(co *ConfigOption) bool + func Read(path string, dest interface{}) error + func SetDuration(co *ConfigOption) error + func SetOptionalString(co *ConfigOption) error + func SetOptionalUint(co *ConfigOption) error + func SetURL(co *ConfigOption) error + type ConfigOption struct + ConfigKey interface{} + CustomSetValue func(*ConfigOption) error + EnvVar string + FlagDefault interface{} + Name string + OptType types.BasicKind + Required bool + Usage string + func (co *ConfigOption) Bind() + func (co *ConfigOption) Init(cmd *cobra.Command) error + func (co *ConfigOption) Require() + func (co *ConfigOption) RequireE() error + func (co *ConfigOption) SetValue() error + func (co *ConfigOption) UsageText() string + type ConfigOptions []*ConfigOption + func (cos ConfigOptions) Init(cmd *cobra.Command) error + func (cos ConfigOptions) Require() + func (cos ConfigOptions) RequireE() error + func (cos ConfigOptions) SetValues() error + type InvalidConfigError struct + InvalidFields map[string]string + func (err *InvalidConfigError) Error() string + type TLS struct + CertificateFile string + PrivateKeyFile string