mapping

package
v0.0.0-...-9302511 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(input interface{}, opts ...Option) map[string]interface{}

func Mapping

func Mapping(input interface{}, output interface{}, opts ...Option) error

Types

type Option

type Option func(config *mapstructure.DecoderConfig)

func WithDecodeHook

func WithDecodeHook(hook mapstructure.DecodeHookFunc) Option

func WithErrorUnused

func WithErrorUnused() Option

func WithMeta

func WithMeta(meta *mapstructure.Metadata) Option

func WithSquash

func WithSquash() Option

func WithTag

func WithTag(tag string) Option

func WithWeaklyTypedInput

func WithWeaklyTypedInput() Option

func WithZeroFields

func WithZeroFields() Option

Jump to

Keyboard shortcuts

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