Parent directory

models.go

446 bytes
 1package feedparser
 2
 3// Link struct for the link element
 4type Link struct {
 5	Href string `xml:"href,attr"`
 6}
 7
 8// Video struct for each video in the feed
 9type Video struct {
10	ID        string `xml:"id"`
11	Title     string `xml:"title"`
12	Published Date   `xml:"published"`
13	Link      Link   `xml:"link"`
14	IsShort   bool
15}
16
17// Channel struct for RSS
18type Channel struct {
19	ID     string
20	Name   string   `xml:"title"`
21	Videos []*Video `xml:"entry"`
22}