Re: [go-nuts] Field undefined error when trying to compile go file for parsing xml's

2016-11-27 Thread Konstantin Khomoutov
On Thu, 24 Nov 2016 22:20:44 -0800 (PST) Chris S wrote: > I am working on trying to parse an xml file with my go code. But I > keep on getting an error saying: > > ./main_v4.go:155: aggInfoXml.IpAddr.Hports undefined (type []Addr has > no field or method Hports) [...]

[go-nuts] Field undefined error when trying to compile go file for parsing xml's

2016-11-25 Thread Chris S
Hi, I am working on trying to parse an xml file with my go code. But I keep on getting an error saying: ./main_v4.go:155: aggInfoXml.IpAddr.Hports undefined (type []Addr has no field or method Hports) Any thoughts on why this is happening? Here is my code package main import (