We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f9b0b2 commit a0760a0Copy full SHA for a0760a0
generator/types_tmpl.go
@@ -49,7 +49,7 @@ var typesTmpl = `
49
50
{{define "Elements"}}
51
{{range .}}
52
- {{replaceReservedWords .Name}} {{if eq .MaxOccurs "unbounded"}}[]{{end}}{{.Type | toGoType}}{{end}}
+ {{replaceReservedWords .Name}} {{if eq .MaxOccurs "unbounded"}}[]{{end}}{{.Type | toGoType}} ` + "`" + `xml:"{{.Name}},omitempty"` + "`" + `{{end}}
53
{{end}}
54
55
{{range .Schemas}}
0 commit comments