diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2016-11-24 21:46:30 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2016-11-24 21:46:30 -0500 |
| commit | fc0f5810f93b6406aa23780bd9357c8169070cb2 (patch) | |
| tree | 7a8c933cfb2cfe404129ea5df090a90434d05896 /modern.go | |
| parent | f7a85af3fc9065d15ec9fd3084252351ff598035 (diff) | |
| download | lastfm-api-fc0f5810f93b6406aa23780bd9357c8169070cb2.tar.gz | |
json and xml marshalling almost working
Diffstat (limited to 'modern.go')
| -rw-r--r-- | modern.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -32,14 +32,14 @@ type Attrs struct { } type Scrobbles struct { - XMLName xml.Name `xml:"scrobbles" json:scrobbles"` - Scrobbles []Scrobble `xml:"scrobble" json:scrobble` + XMLName xml.Name `xml:"scrobbles" json:"-"` + Scrobbles []Scrobble `xml:"scrobble" json:"scrobble"` Attrs `json:"@attr"` } type Correctable struct { - Corrected int `xml:"corrected,attr" json:"corrected"` Name string `xml:",chardata" json:"#text"` + Corrected int `xml:"corrected,attr" json:"corrected"` } func NewCorrectable(name string) Correctable { |
