-
Type: Improvement
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Currently it seems that in order to "inline" a field it must have the "inline" tag even if it's an embedded/anonymous field. In Go, the standard practice is to "inline" the embedded fields. This behaviour exists in the std lib (i.e. encoding/json, encoding/xml) so I believe the mongo driver/bson should follow the same practice.
- related to
-
GODRIVER-3077 Anonymous Embed struct field should be flattened default
- Backlog