Add Go XML to structure tags
The Go programming language can directly map XML to structure fields. Add the correct XML tag after each field.
package main
// FooXML mapping from XML to struct
type FooXML struct {
Field1 string
Field2 string
Field3 string
}
package main
// FooXML mapping from XML to struct
type FooXML struct {
Field1 string `xml:"field1"`
Field2 string `xml:"field2"`
Field3 string `xml:"field3"`
}