From 7d2d4f0960f2102750720b7a69c783a6ba04f73e Mon Sep 17 00:00:00 2001 From: filifa Date: Tue, 18 Jun 2024 19:27:07 -0500 Subject: [PATCH] add comment --- cmd/root.go | 2 ++ 1 file changed, 2 insertions(+) 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