mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-07 16:33:40 +00:00
query -> doc
This commit is contained in:
parent
4dd74a2b02
commit
8353845a8c
4
main.go
4
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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user