parse atom:link
This commit is contained in:
parent
e1b5632521
commit
f52007676f
1 changed files with 9 additions and 2 deletions
7
rss.go
7
rss.go
|
@ -26,9 +26,16 @@ type ItemEnclosure struct {
|
|||
Type string `xml:"type,attr"`
|
||||
}
|
||||
|
||||
type AtomLink struct {
|
||||
Href string `xml:"href,attr"`
|
||||
Rel string `xml:"rel,attr"`
|
||||
Type string `xml:"type,attr"`
|
||||
}
|
||||
|
||||
type Item struct {
|
||||
Title string `xml:"title"`
|
||||
Link string `xml:"link"`
|
||||
AtomLink AtomLink `xml:"http://www.w3.org/2005/Atom/ link"`
|
||||
Comments string `xml:"comments"`
|
||||
PubDate Date `xml:"pubDate"`
|
||||
GUID string `xml:"guid"`
|
||||
|
|
Loading…
Reference in a new issue