encoding/json: Struct behind interface embedding behaves differently to struct-only embedding #7230
Labels
Comments
Embedded interfaces and embedded structs are just different. Here is a version of your program demonstrating the difference. If we "flatten", then how do we know how to unmarshal? http://play.golang.org/p/orp7cvQplU Status changed to WorkingAsIntended. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by pronox:
The text was updated successfully, but these errors were encountered: