Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
// Optional according to Dave Winer
Title string `xml:"title" json:"title,omitempty"`
// Required
Link string `xml:"link" json:"link"`
// Optional
Description template.HTML `xml:"description" json:"description,omitempty"`
Content template.HTML `xml:"encoded" json:"encoded,omitempty"`
PubDate string `xml:"pubDate" json:"pubDate,omitempty"`
Comments string `xml:"comments" json:"comments,omitempty"`
}
type RSS2 ¶
type RSS2 struct {
XMLName xml.Name `xml:"rss" json:"-"`
Version string `xml:"version,attr" json:"version"`
// Required
Title string `xml:"channel>title" json:"title"`
Link string `xml:"channel>link" json:"link"`
Description string `xml:"channel>description" json:"description"`
// Optional
PubDate string `xml:"channel>pubDate" json:"pubDate,omitempty"`
ItemList []Item `xml:"channel>item" json:"item,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.