MCPcopy
hub / github.com/mitchellh/mapstructure / Decode

Method Decode

mapstructure.go:416–418  ·  mapstructure.go::Decoder.Decode

Decode decodes the given raw interface to the target pointer specified by the configuration.

(input interface{})

Source from the content-addressed store, hash-verified

414// Decode decodes the given raw interface to the target pointer specified
415// by the configuration.
416func (d *Decoder) Decode(input interface{}) error {
417 return d.decode("", input, reflect.ValueOf(d.config.Result).Elem())
418}
419
420// Decodes an unknown data type into a specific reflection value.
421func (d *Decoder) decode(name string, input interface{}, outVal reflect.Value) error {

Calls 1

decodeMethod · 0.95