Documentation
¶
Index ¶
- func CustomTypeHookFunc() mapstructure.DecodeHookFunc
- func FromMap[T any](m map[string]string, o *T) (err error)
- func FromMapToPointer[T any](m map[string]string, o T) (err error)
- func ToMap[T any](o *T) (m map[string]string, err error)
- func ToMapFromPointer[T any](o T) (m map[string]string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomTypeHookFunc ¶ added in v1.132.0
func CustomTypeHookFunc() mapstructure.DecodeHookFunc
func FromMap ¶
FromMap deserialises a flatten map into a struct using (mapstructure)[https://github.com/go-viper/mapstructure]
func FromMapToPointer ¶ added in v1.112.0
FromMapToPointer is like FromMap but deals with a pointer.
func ToMap ¶
ToMap converts a struct to a flat map using (mapstructure)[https://github.com/go-viper/mapstructure]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.