mapping

package
v0.0.0-...-eeebc8f Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapTimeFromJSON

func MapTimeFromJSON(f reflect.Type, t reflect.Type, data interface{}) (interface{}, error)

MapTimeFromJSON is a decoder hook that maps time data from JSON values, avoiding the issue of things appearing as errors/blank when dealing with native Go time types. This is based on the code at https://github.com/mitchellh/mapstructure/issues/41

Types

This section is empty.

Jump to

Keyboard shortcuts

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