Documentation ¶
Overview ¶
Package search manages the searching of results against different news feeds.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { XMLName xml.Name `xml:"channel"` Image Image `xml:"image"` Items []Item `xml:"item"` }
Channel defines the fields associated with the channel tag in the RSS document.
type Image ¶
type Image struct { XMLName xml.Name `xml:"image"` URL string `xml:"url"` Title string `xml:"title"` Link string `xml:"link"` }
Image defines the fields associated with the image tag in the RSS document.
type Item ¶
type Item struct { XMLName xml.Name `xml:"item"` PubDate string `xml:"pubDate"` Title string `xml:"title"` Description string `xml:"description"` Link string `xml:"link"` }
Item defines the fields associated with the item tag in the RSS document.
type Result ¶
Result represents a search result that was found.
func Submit ¶
Submit uses goroutines and channels to perform a search against the feeds concurrently.
func (*Result) ContentHTML ¶
ContentHTML fixes encoding issues.
Click to show internal directories.
Click to hide internal directories.