decoder

package
v0.0.0-...-87346ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL