fullstack-lang / gong

Gong (go+ng) is a go sub-language that compiles to go and angular. All valid go is valid gong and vice versa. Gong enables fast development of web applications. Gong is model centric and by default, a UML diagram editor of the model is embedded in each application.
MIT License
13 stars 1 forks source link

Support Anonymous struct #503

Closed thomaspeugeot closed 3 months ago

thomaspeugeot commented 3 months ago

In go code generated by gowsdl from a XSD file, there is a lot of anonymous struct.

type SPECIFICATION_TYPE struct {
    ALTERNATIVE_ID struct {
        ALTERNATIVE_ID []*ALTERNATIVE_ID `xml:"ALTERNATIVE-ID,omitempty" json:"ALTERNATIVE-ID,omitempty"`
    } `xml:"ALTERNATIVE-ID,omitempty" json:"ALTERNATIVE-ID,omitempty"`

The idea is to generate fields with name ALTERNATIVE_ID.ALTERNATIVE_ID