diff --git a/cmd/root.go b/cmd/root.go index 15a15a2..5797bcc 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -37,6 +37,8 @@ func formatItem(item *gofeed.Item, tmpl *template.Template) (string, error) { return html.UnescapeString(b.String()), err } +// parseFeeds parses the feeds at the given urls in parallel and returns them, +// along with any parsing errors. func parseFeeds(urls []string) ([]*gofeed.Feed, []error) { fp := gofeed.NewParser() var feedChs []chan *gofeed.Feed