From bd1cf89d8f275c6b69675f9a05d48b1573805ea5 Mon Sep 17 00:00:00 2001 From: Alexander Kauer Date: Fri, 3 Feb 2017 15:50:12 +0100 Subject: [PATCH] blog/atom: support atom:link as in RFC4287 4.2.7 Change-Id: Id704a4b1f0deca1e9b090dd1fc21e7b1b55478ec Reviewed-on: https://go-review.googlesource.com/36281 Reviewed-by: Brad Fitzpatrick --- blog/atom/atom.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/blog/atom/atom.go b/blog/atom/atom.go index f12c31de6a..542c50e6e4 100644 --- a/blog/atom/atom.go +++ b/blog/atom/atom.go @@ -34,8 +34,12 @@ type Entry struct { } type Link struct { - Rel string `xml:"rel,attr"` - Href string `xml:"href,attr"` + Rel string `xml:"rel,attr,omitempty"` + Href string `xml:"href,attr"` + Type string `xml:"type,attr,omitempty"` + HrefLang string `xml:"hreflang,attr,omitempty"` + Title string `xml:"title,attr,omitempty"` + Length uint `xml:"length,attr,omitempty"` } type Person struct {