DecodeAndClose decodes into dst and closes the decoder
(dst any)
| 108 | |
| 109 | // DecodeAndClose decodes into dst and closes the decoder |
| 110 | func (d *Decoder) DecodeAndClose(dst any) (rootName string, err error) { |
| 111 | defer d.Close() |
| 112 | return d.Decode(dst) |
| 113 | } |
| 114 | |
| 115 | func (d *Decoder) Decode(dst any) (rootName string, err error) { |
| 116 | id := unsafe2.InterfaceData(dst) |