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
Anonymous fields can also be manually named, overriding their typical behavior. I think having a way to do the opposite and treat a named field as though it were anonymous makes sense. Even without generics, it would allow you to have a field of an interface type and spread the values to the parent object:
I added new json tag.
This can be instead of embedded generics.
As you know, we cannot embed generics to struct.
this is invalid
I want use embed in json, so I added new json tag to spread struct in its parent.
ex)
If you encode it in json. It'll be like this.
My PR.
The text was updated successfully, but these errors were encountered: