Documentation
¶
Overview ¶
Package decoder has a collection of mapstructure hooks to help with decoding an interface into golang struct
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Hooks = mapstructure.ComposeDecodeHookFunc( BoolToBoolFunc(), StringToDurationFunc(), StringToStringFunc(), Float64ToUintFunc(), )
Functions ¶
func BoolToBoolFunc ¶
func BoolToBoolFunc() mapstructure.DecodeHookFunc
BoolToBoolFunc is a mapstructure hook that looks for an incoming bool mapped to a Bool and does the translation.
func Float64ToUintFunc ¶
func Float64ToUintFunc() mapstructure.DecodeHookFunc
Float64ToUintFunc is a mapstructure hook that looks for an incoming float64 mapped to a Uint and does the translation.
func StringToDurationFunc ¶
func StringToDurationFunc() mapstructure.DecodeHookFunc
StringToDurationFunc is a mapstructure hook that looks for an incoming string mapped to a Duration and does the translation.
func StringToStringFunc ¶
func StringToStringFunc() mapstructure.DecodeHookFunc
StringToStringFunc is a mapstructure hook that looks for an incoming string mapped to a String and does the translation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.