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
This behaviour seems like only happens in this specific case. If I embed StructD into StructC, then the result is correct. I didn't dig into .Encode, nor tried any other composition of structs, so perhaps there are more strange cases like this.
The text was updated successfully, but these errors were encountered:
For structs layers below, the output doesn't seem to be correct:
Example code:
Outputs:
vs json.Marshal:
This behaviour seems like only happens in this specific case. If I embed
StructD
intoStructC
, then the result is correct. I didn't dig into.Encode
, nor tried any other composition of structs, so perhaps there are more strange cases like this.The text was updated successfully, but these errors were encountered: