On Fri, Nov 25, 2016 at 4:42 PM Chris S wrote:
type AggInfoXml struct {
Percent IntPercent `xml:"taskprogress,omitempty"`
IpAddr []Addr `xml:"host>address,omitempty"`
}
...
for _, port := range aggInfoXml.IpAddr.Hports {
Hi,
I am currently working on parsing an xml file using go structs. I have
typed up the following code below. But for some reason when I try to
compile it. it gives me an error saying
./main_v4.go:155: aggInfoXml.IpAddr.Hports undefined (type []Addr has no
field or method Hports)
I have no i