Closed dirkmc closed 3 years ago
It's useful to be able to add a field to a struct and for older versions of the code to ignore the added field when unmarshaling.
// V1 type Animal struct { Legs int } ... // V2 type Animal struct { Legs int Eyes int }
This PR modifies the unmarshaling code such that it will ignore any fields it doesn't recognize.
Just making sure: this only applies to maps, right?
It's useful to be able to add a field to a struct and for older versions of the code to ignore the added field when unmarshaling.
This PR modifies the unmarshaling code such that it will ignore any fields it doesn't recognize.