From 637e1f41c39b75961c088bbb748334b775f3018f Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Fri, 5 Jun 2020 17:52:54 -0600 Subject: [PATCH] fully qualify feeds --- main.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index 903f4ea..3e28e7b 100644 --- a/main.go +++ b/main.go @@ -17,7 +17,7 @@ import ( "time" "github.com/fsnotify/fsnotify" - . "github.com/gorilla/feeds" + "github.com/gorilla/feeds" "github.com/russross/blackfriday" ) @@ -342,21 +342,21 @@ func main() { latestDate := posts[0].Date - feed := &Feed{ + feed := &feeds.Feed{ Title: "deftly.net - All posts", - Link: &Link{Href: "https://deftly.net/"}, + Link: &feeds.Link{Href: "https://deftly.net/"}, Description: "Personal blog of Aaron Bieber", - Author: &Author{Name: "Aaron Bieber", Email: "aaron@bolddaemon.com"}, + Author: &feeds.Author{Name: "Aaron Bieber", Email: "aaron@bolddaemon.com"}, Created: latestDate, Copyright: "This work is copyright © Aaron Bieber", } for _, post := range posts { - var i = &Item{} + var i = &feeds.Item{} i.Title = post.Title i.Description = string(post.Body) - i.Link = &Link{Href: "https://deftly.net" + post.URL} - i.Author = &Author{Name: post.Author.Combine(), Email: "aaron@bolddaemon.com"} + i.Link = &feeds.Link{Href: "https://deftly.net" + post.URL} + i.Author = &feeds.Author{Name: post.Author.Combine(), Email: "aaron@bolddaemon.com"} i.Created = post.Date feed.Items = append(feed.Items, i)