Re: [go-nuts] Struct field updefined Build Error

2016-11-25 Thread Jan Mercl
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 {

[go-nuts] Struct field updefined Build Error

2016-11-25 Thread Chris S
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