Skip to content

Commit

Permalink
Adds xml tags for generated types
Browse files Browse the repository at this point in the history
  • Loading branch information
c4milo committed Jan 15, 2014
1 parent 0f9b0b2 commit a0760a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/types_tmpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var typesTmpl = `
{{define "Elements"}}
{{range .}}
{{replaceReservedWords .Name}} {{if eq .MaxOccurs "unbounded"}}[]{{end}}{{.Type | toGoType}}{{end}}
{{replaceReservedWords .Name}} {{if eq .MaxOccurs "unbounded"}}[]{{end}}{{.Type | toGoType}} ` + "`" + `xml:"{{.Name}},omitempty"` + "`" + `{{end}}
{{end}}
{{range .Schemas}}
Expand Down

0 comments on commit a0760a0

Please sign in to comment.