Quantcast
Channel: golang XML not unmarshal-ing properly - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by nemo for golang XML not unmarshal-ing properly

The correct structure is the following:type Customer struct { Code string `xml:"code"` Name string `xml:"name"`}type Customers struct { Customers []Customer `xml:"name"`}You can try it on the...

View Article



golang XML not unmarshal-ing properly

The XML format I need to unmarshal is as follows:data := `<table><name><code>23764</code><name>Smith,...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images