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 /data.go | |
| parent | f7a85af3fc9065d15ec9fd3084252351ff598035 (diff) | |
| download | lastfm-api-fc0f5810f93b6406aa23780bd9357c8169070cb2.tar.gz | |
json and xml marshalling almost working
Diffstat (limited to 'data.go')
| -rw-r--r-- | data.go | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -12,14 +12,14 @@ import ( type Scrobble struct { Artist Correctable `xml:"artist" json:"artist"` AlbumArtist Correctable `xml:"albumArtist" json:"albumArtist"` - TrackName Correctable `xml:"track" json:"albumArtist"` - Album Correctable `xml:"album" json:album"` - TrackNumber int - Duration int - Time int - Chosen bool - Mbid string - Session string + TrackName Correctable `xml:"track" json:"track"` + Album Correctable `xml:"album" json:"album"` + TrackNumber int `xml:"-" json:"-"` + Duration int `xml:"-" json:"-"` + Time int `xml:"timestamp" json:"timestamp,string"` + Chosen bool `xml:"-" json:"-"` + Mbid string `xml:"-" json:"-"` + Session string `xml:"-" json:"-"` } type Session struct { |
