Decode decodes the given raw interface to the target pointer specified by the configuration.
(input interface{})
| 414 | // Decode decodes the given raw interface to the target pointer specified |
| 415 | // by the configuration. |
| 416 | func (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. |
| 421 | func (d *Decoder) decode(name string, input interface{}, outVal reflect.Value) error { |