mapstructure

package
v1.3.24 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func StringToByteSliceHookFunc

func StringToByteSliceHookFunc() mapstructure.DecodeHookFunc

[]byte is JSON encoded as base64 string in Golang. This decode function converts string -> []byte pair correctly.

func StringToDurationHookFunc

func StringToDurationHookFunc() mapstructure.DecodeHookFunc

String to wrapped Duration

func StringToJsonNumericStringHookFunc

func StringToJsonNumericStringHookFunc() mapstructure.DecodeHookFunc

func StringToJsonUint64HookFunc

func StringToJsonUint64HookFunc() mapstructure.DecodeHookFunc

String to wrapped json.Uint64

Types

type MapstructureDecoder

type MapstructureDecoder struct {
	// contains filtered or unexported fields
}

func NewMapstructureDecoder

func NewMapstructureDecoder(
	weeklyTypedInput bool,
	decodeHookFuncFn mapstructure.DecodeHookFunc,
) *MapstructureDecoder

func (*MapstructureDecoder) Decode

func (generator *MapstructureDecoder) Decode(
	input interface{},
	resultPtr interface{},
) error

func (*MapstructureDecoder) MustDecode

func (generator *MapstructureDecoder) MustDecode(
	input interface{},
	resultPtr interface{},
)

Jump to

Keyboard shortcuts

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