Documentation
¶
Index ¶
- func BindEnvAlias(fieldPath string, aliases ...string)
- func BindFlag(fieldPath string, flag *pflag.Flag)
- func Load(configData string, cfg interface{}) error
- func LoadEnv(prefix string, cfg interface{}) error
- func LoadFile(configFilePath string, cfg interface{}) error
- func LoadFlags(cfg interface{}) error
- func RegisterCustomMarshaler[T any](marshaler func(T) ([]byte, error))
- func RegisterCustomUnmarshaler[T any](unmarshaler func(*T, []byte) error)
- func SetEnvPrefix(prefix string)
- func SetExpandEnv(expand bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindEnvAlias ¶
func RegisterCustomMarshaler ¶
func SetEnvPrefix ¶
func SetEnvPrefix(prefix string)
func SetExpandEnv ¶ added in v1.1.0
func SetExpandEnv(expand bool)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.