Documentation ¶
Index ¶
- func InsecureRead(url string, reddit bool) (*http.Response, error)
- func Read(url string, reddit bool) (*http.Response, error)
- func ReadWithClient(url string, client *http.Client, reddit bool) (*http.Response, error)
- type Channel
- type Date
- type Entry
- type Feed
- type Fetcher
- type Item
- type ItemEnclosure
- type Video
- type YouTubeChannel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsecureRead ¶
InsecureRead reads without certificate check
Types ¶
type Channel ¶
type Channel struct { Title string `xml:"title"` Link string `xml:"link"` Description string `xml:"description"` Language string `xml:"language"` LastBuildDate Date `xml:"lastBuildDate"` Item []Item `xml:"item"` }
Channel struct for RSS
type Date ¶
type Date string
Date type
func (Date) MustFormat ¶
MustFormat (Date function), take a string and returns string
type Entry ¶
type Entry struct { ID string `xml:"id"` Title string `xml:"title"` Updated string `xml:"updated"` }
Entry struct for each Entry in the Feed
type Item ¶
type Item struct { Title string `xml:"title"` Link string `xml:"link"` Comments string `xml:"comments"` PubDate Date `xml:"pubDate"` GUID string `xml:"guid"` Category []string `xml:"category"` Enclosure []ItemEnclosure `xml:"enclosure"` Description string `xml:"description"` Author string `xml:"author"` Content string `xml:"content"` FullText string `xml:"full-text"` }
Item struct for each Item in the Channel
type ItemEnclosure ¶
ItemEnclosure struct for each Item Enclosure
Click to show internal directories.
Click to hide internal directories.