1
0
mirror of https://github.com/golang/go synced 2024-11-18 05:04:47 -07:00

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>
This commit is contained in:
Alexander Kauer 2017-02-03 15:50:12 +01:00 committed by Brad Fitzpatrick
parent 1a60337c22
commit bd1cf89d8f

View File

@ -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 {