Documentation ¶
Index ¶
Constants ¶
View Source
const ( RFC1123NoSecond = "Mon, 02 Jan 2006 15:04 MST" HackerNewsTimeFormat = "Mon, _2 Jan 2006 15:04:05 -0700" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feed ¶
type OpmlBody ¶
type OpmlBody struct {
Outline []OpmlOutline `xml:"outline"`
}
type OpmlOutline ¶
type OpmlOutline struct { Type string `xml:"type,attr,omitempty"` Text string `xml:"text,attr,omitempty"` Title string `xml:"title,attr,omitempty"` XmlUrl string `xml:"xmlUrl,attr,omitempty"` HtmlUrl string `xml:"htmlUrl,attr,omitempty"` URL string `xml:"url,attr,omitempty"` Category string `xml:"category,attr,omitempty"` Outline []OpmlOutline `xml:"outline"` }
type RssItem ¶
type RssItem struct { XMLName xml.Name `xml:"item"` Id string `xml:"guid"` Title string `xml:"title"` Link string `xml:"link"` Description rssContent `xml:"description"` Content rssContent `xml:"http://purl.org/rss/1.0/modules/content/ encoded"` PubDate string `xml:"pubDate"` Date string `xml:"date"` TTL int `xml:"ttl"` SkipHours []int `xml:"skipHours>hour"` SkipDays []string `xml:"skipDays>day"` }
RssItem is the base content for both rss1 and rss2 feeds. The only reason it's public is because of the refrect package
Click to show internal directories.
Click to hide internal directories.