From 6c7021c279892a8d34f090a09f0dca502c469910 Mon Sep 17 00:00:00 2001 From: beawkiattisak Date: Fri, 20 Oct 2023 23:51:19 +0700 Subject: [PATCH] fix comment --- main.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index a588eb50..7ce78c8f 100644 --- a/main.go +++ b/main.go @@ -5,14 +5,15 @@ import ( "bytes" "errors" "fmt" - "github.com/avelino/awesome-go/pkg/markdown" - cp "github.com/otiai10/copy" template2 "html/template" "net/url" "os" "path/filepath" "text/template" + "github.com/avelino/awesome-go/pkg/markdown" + cp "github.com/otiai10/copy" + "github.com/PuerkitoBio/goquery" "github.com/avelino/awesome-go/pkg/slug" ) @@ -241,8 +242,8 @@ func extractCategory(doc *goquery.Document, selector string) (*Category, error) doc.Find(selector).EachWithBreak(func(_ int, selCatHeader *goquery.Selection) bool { selDescr := selCatHeader.NextFiltered("p") // FIXME: bug. this would select links from all neighboring - // sub-categories until the next category. To prevent this we should - // find only first ul + // sub-categories until the next category. To prevent this we should + // find only first ul ul := selCatHeader.NextFilteredUntil("ul", "h2") var links []Link