From fc0f5810f93b6406aa23780bd9357c8169070cb2 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Thu, 24 Nov 2016 21:46:30 -0500 Subject: json and xml marshalling almost working --- modern.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modern.go') diff --git a/modern.go b/modern.go index ee69dc4..fe66164 100644 --- a/modern.go +++ b/modern.go @@ -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 { -- cgit v1.2.3-70-g09d2