decoder

package
v0.0.0-...-ae75a06 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 3 modules, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

Jump to

Keyboard shortcuts

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