Add serializing RSS items and change NewFeed to New

This commit is contained in:
Bel LaPointe
2018-10-08 15:33:52 -06:00
parent 389bda7d40
commit 1884fda442
3 changed files with 19 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ func Test_RSSFeed(t *testing.T) {
},
}
for _, c := range cases {
feed, items, err := NewFeed(s.URL, c.itemFilter, c.contentFilter)
feed, items, err := New(s.URL, c.itemFilter, c.contentFilter)
if err != nil {
t.Errorf("couldn't create new feed %v: %v", feed, err)
}