Documentation ¶
Index ¶
- func Decode(f mapstructure.DecodeHookFunc, data *map[string]interface{}, e interface{}) (interface{}, error)
- func TaskDomainDetailHook() mapstructure.DecodeHookFunc
- func TimeHook(layout string) mapstructure.DecodeHookFunc
- func UIDHook() mapstructure.DecodeHookFunc
- type InterfaceWrapper
- type TaskEventWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
func Decode(f mapstructure.DecodeHookFunc, data *map[string]interface{}, e interface{}) (interface{}, error)
func TaskDomainDetailHook ¶
func TaskDomainDetailHook() mapstructure.DecodeHookFunc
func TimeHook ¶
func TimeHook(layout string) mapstructure.DecodeHookFunc
func UIDHook ¶
func UIDHook() mapstructure.DecodeHookFunc
Types ¶
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
type TaskEventWrapper ¶
type TaskEventWrapper InterfaceWrapper
func (*TaskEventWrapper) UnmarshalJSON ¶
func (w *TaskEventWrapper) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.