I'm trying to get some attribute values out of XML, but without success. http://play.golang.org/p/a5IqjbH3DV
Can anyone spot of what I'm doing wrong?
The fields should be exported ( start with uppercase )
You did it right for the Entry but not for the Statistics struct
See: http://play.golang.org/p/cQRGJag313
type Statistics struct {
TotalUploadViews int `xml:"totalUploadViews,attr"`
SubscriberCount int `xml:"subscriberCount,attr"`
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With