basic json feed parser
This commit is contained in:
parent
0a9beddef9
commit
a895775f81
3 changed files with 141 additions and 0 deletions
21
src/feed/models.go
Normal file
21
src/feed/models.go
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
package feed
|
||||
|
||||
import "time"
|
||||
|
||||
type Feed struct {
|
||||
Title string
|
||||
SiteURL string
|
||||
FeedURL string
|
||||
Items []Item
|
||||
}
|
||||
|
||||
type Item struct {
|
||||
GUID string
|
||||
Date *time.Time
|
||||
URL string
|
||||
Title string
|
||||
|
||||
Content string
|
||||
ImageURL string
|
||||
PodcastURL string
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue