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: ? modules, 0 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

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