aboutsummaryrefslogtreecommitdiff
path: root/blog
diff options
context:
space:
mode:
authorAlexander Kauer <alexander@affine.space>2017-02-03 15:50:12 +0100
committerBrad Fitzpatrick <bradfitz@golang.org>2017-02-04 21:42:09 +0000
commitbd1cf89d8f275c6b69675f9a05d48b1573805ea5 (patch)
tree19939ea7daec82c21b1c1a45636a6f62a87f8dc7 /blog
parent1a60337c22bc70e65519850cdb17b96fde550e8d (diff)
downloadgolang-x-tools-bd1cf89d8f275c6b69675f9a05d48b1573805ea5.tar.gz
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 <bradfitz@golang.org>
Diffstat (limited to 'blog')
-rw-r--r--blog/atom/atom.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/blog/atom/atom.go b/blog/atom/atom.go
index f12c31de6..542c50e6e 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 {