Documentation ¶
Index ¶
- func BindPFlag(key string, flag *pflag.Flag)
- func Bool(environmentVariable string) *boolBuilder
- func Get() *applicationConfigType
- func GetSanatizedDefaultValue(valueDescriptor *Descriptor) string
- func GetTruncated(valueDescriptor *Descriptor, value any) string
- func Int(environmentVariable string) *intBuilder
- func LoadConfig(values []Value) error
- func LoadConfigWithOptions(values []Value, options *LoadConfigOptions) error
- func MaskSensitiveString(valueDescriptor *Descriptor, value string) string
- func Print()
- func Set() *valueSetter
- func String(environmentVariable string) *stringBuilder
- func StringArray(environmentVariable string) *stringArrayBuilder
- type Descriptor
- type LoadConfigOptions
- type TypeInfo
- type Value
- type ValueType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSanatizedDefaultValue ¶
func GetSanatizedDefaultValue(valueDescriptor *Descriptor) string
func GetTruncated ¶ added in v1.5.0
func GetTruncated(valueDescriptor *Descriptor, value any) string
func LoadConfig ¶
func LoadConfigWithOptions ¶ added in v1.3.0
func LoadConfigWithOptions(values []Value, options *LoadConfigOptions) error
func MaskSensitiveString ¶ added in v1.5.1
func MaskSensitiveString(valueDescriptor *Descriptor, value string) string
func StringArray ¶ added in v1.4.0
func StringArray(environmentVariable string) *stringArrayBuilder
Types ¶
type Descriptor ¶
type LoadConfigOptions ¶ added in v1.3.0
type Value ¶
type Value interface {
Descriptor() *Descriptor
}
Click to show internal directories.
Click to hide internal directories.