type Option interface {
// contains filtered or unexported methods
}Option controls the operation of a Decode.
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(input map[string]interface{}, output interface{}, opts ...Option) ResultDecode takes values out of input and stores them into output, allocating as necessary.