From 8353845a8c90c5332b3b83593f45ef82bb9cd920 Mon Sep 17 00:00:00 2001 From: Kirill Zhuravlev Date: Wed, 15 Feb 2023 02:32:24 +0100 Subject: [PATCH] query -> doc --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index c4fedd95..60a382f2 100644 --- a/main.go +++ b/main.go @@ -156,13 +156,13 @@ func renderCategories(categories map[string]Category) error { // Sanitize HTML. This is not necessary, but allows to have content // of all html files in same style. { - query, err := goquery.NewDocumentFromReader(buf) + doc, err := goquery.NewDocumentFromReader(buf) if err != nil { // FIXME: remove `unable to` from all fmt.Errorf return fmt.Errorf("unable to create goquery instance for `%s`: %w", categoryDir, err) } - html, err := query.Html() + html, err := doc.Html() if err != nil { return fmt.Errorf("unable to render goquery html for `%s`: %w", categoryDir, err) }