I\'m trying to decode some json in Go but some fields don\'t get decoded. See the code running in browser here:
What am I doing wrong?
I need only the MX reco
You must Uppercase struct fields:
type MxRecords struct { Value string `json:"value"` Ttl int `json:"ttl"` Priority int `json:"priority"` HostName string `json:"hostName"` } type Data struct { MxRecords []MxRecords `json:"mxRecords"` }
http://play.golang.org/p/EEyiISdoaE