Documentation ¶
Index ¶
- func Decode(input string, key string, result interface{}, ...) error
- func DecodeFile(path string, key string, result interface{}, ...) error
- func EnumDecodeHook(enumType interface{}, enumParser EnumParseFunc) mapstructure.DecodeHookFunc
- func SetDefaultValues(input map[string]interface{}, result interface{}) error
- type EnumParseFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
func Decode(input string, key string, result interface{}, hooks []mapstructure.DecodeHookFunc, unset, unused *[]string) error
func DecodeFile ¶
func DecodeFile(path string, key string, result interface{}, hooks []mapstructure.DecodeHookFunc, unset, unused *[]string) error
func EnumDecodeHook ¶
func EnumDecodeHook(enumType interface{}, enumParser EnumParseFunc) mapstructure.DecodeHookFunc
EnumDecodeHook decodes an enum value based on the provided enumType.
func SetDefaultValues ¶
Types ¶
type EnumParseFunc ¶
EnumParseFunc represents the signature of enum parse functions.
Click to show internal directories.
Click to hide internal directories.