|
|
|
|
|
by steveklabnik
1056 days ago
|
|
I have not done deserialization in Go, but my understanding of what he meant via context was that because everything has default values, it is possible to end up with a struct even if the JSON (or whatever) isn't actually well-formed. I don't know how true that is or to what extent it causes issues. |
|
For input that does not have the fields of the destination well you can use other libraries that check that for you or use pointers.