Closed artvel closed 1 week ago
there's a flatten tag which implements this behavior.
type B struct { A `msg",flatten" }
But it seems it only works if A and B is in the same file. This breaks if it's in a different file. Worse, it doesn't print any warning that it skips a field during generation.
Is there any actual problems arising from this?
Having a structure like:
Produces currently an unnecessary wrapped outcome:
Expected outcome: