You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's also less error prone, as the decoder cannot be reused.
Technically this is a breaking change, since the DisallowUnknownFields might by passed as a function pointer, although I cannot imagine any use for that. Alternatively, We could add a Strict method to the decoder, to avoid breaking existing code.
The text was updated successfully, but these errors were encountered:
We can agree or disagree as to whether this would be a good idea, but it doesn't matter because we can't make this change. It would break the Go 1 compatibility guarantee (https://golang.org/doc/go1compat). Sorry.