basic json feed parser

This commit is contained in:
Nazar Kanaev 2021-03-19 16:22:37 +00:00
parent 0a9beddef9
commit a895775f81
3 changed files with 141 additions and 0 deletions

21
src/feed/models.go Normal file
View 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
}