Decode works like Unmarshal, except it reads the decoder stream to find the start element.
(v any)
| 137 | // Decode works like Unmarshal, except it reads the decoder |
| 138 | // stream to find the start element. |
| 139 | func (d *Decoder) Decode(v any) error { |
| 140 | return d.DecodeElement(v, nil) |
| 141 | } |
| 142 | |
| 143 | // DecodeElement works like Unmarshal except that it takes |
| 144 | // a pointer to the start XML element to decode into v. |
no test coverage detected