Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecodeOption ¶ added in v1.0.2
type DecodeOption interface {
// contains filtered or unexported methods
}
DecodeOption controls the operation of a Decode.
type Result ¶
type Result struct { Error error Used map[string]struct{} Missing map[string]struct{} Broken map[string]struct{} }
Result contains information about the result of a Decode.
func Decode ¶
func Decode(input map[string]interface{}, output interface{}, opts ...DecodeOption) Result
Decode takes values out of input and stores them into output, allocating as necessary.
Click to show internal directories.
Click to hide internal directories.