Documentation ¶
Index ¶
- func CropContainerHook() mapstructure.DecodeHookFunc
- func Decode(f mapstructure.DecodeHookFunc, data *map[string]interface{}, e interface{}) (interface{}, error)
- func TimeHook(layout string) mapstructure.DecodeHookFunc
- func UIDHook() mapstructure.DecodeHookFunc
- type CropActivityTypeWrapper
- type CropEventWrapper
- type InterfaceWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CropContainerHook ¶
func CropContainerHook() mapstructure.DecodeHookFunc
func Decode ¶
func Decode(f mapstructure.DecodeHookFunc, data *map[string]interface{}, e interface{}) (interface{}, error)
func TimeHook ¶
func TimeHook(layout string) mapstructure.DecodeHookFunc
func UIDHook ¶
func UIDHook() mapstructure.DecodeHookFunc
Types ¶
type CropActivityTypeWrapper ¶
type CropActivityTypeWrapper InterfaceWrapper
func (*CropActivityTypeWrapper) UnmarshalJSON ¶
func (w *CropActivityTypeWrapper) UnmarshalJSON(b []byte) error
type CropEventWrapper ¶
type CropEventWrapper InterfaceWrapper
func (*CropEventWrapper) UnmarshalJSON ¶
func (w *CropEventWrapper) UnmarshalJSON(b []byte) error
type InterfaceWrapper ¶
type InterfaceWrapper struct { Name string Data interface{} }
InterfaceWrapper is used to wrap an interface with its struct name, so it will be easier to unmarshal later
Click to show internal directories.
Click to hide internal directories.