Skip to content

Commit

Permalink
Downgrade go (#12)
Browse files Browse the repository at this point in the history
* Downgrade go

* Fix

* Fixed linter error
  • Loading branch information
XDoubleU authored Jan 5, 2025
1 parent 8ea6047 commit a552a3a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module goal-tracker/api

go 1.23

toolchain go1.23.3
go 1.22

require github.com/justinas/alice v1.2.0

Expand All @@ -29,7 +27,7 @@ require (
)

require (
github.com/PuerkitoBio/goquery v1.10.1 // indirect
github.com/PuerkitoBio/goquery v1.5.1 // indirect
github.com/andybalholm/cascadia v1.3.3 // indirect
github.com/antchfx/htmlquery v1.3.4 // indirect
github.com/antchfx/xmlquery v1.4.3 // indirect
Expand Down
3 changes: 1 addition & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/PuerkitoBio/goquery v1.5.1 h1:PSPBGne8NIUWw+/7vFBV+kG2J/5MOjbzc7154OaKCSE=
github.com/PuerkitoBio/goquery v1.5.1/go.mod h1:GsLWisAFVj4WgDibEWF4pvYnkVQBpKBKeU+7zCJoLcc=
github.com/PuerkitoBio/goquery v1.10.1 h1:Y8JGYUkXWTGRB6Ars3+j3kN0xg1YqqlwvdTV8WTFQcU=
github.com/PuerkitoBio/goquery v1.10.1/go.mod h1:IYiHrOMps66ag56LEH7QYDDupKXyo5A8qrjIx3ZtujY=
github.com/XDoubleU/essentia v0.1.8 h1:eIEF5vfkgoKAw5V5PhLemYP7GcQ2tY2agApYY1bVwa0=
github.com/XDoubleU/essentia v0.1.8/go.mod h1:pWYqkSnVq1hER6PQh09CUTTl1K98I51zWLNZKWi+SfI=
github.com/andybalholm/cascadia v1.1.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y=
Expand Down
3 changes: 2 additions & 1 deletion pkg/goodreads/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ func isDivider(child *html.Node) bool {

func getShelfOrTagName(child *html.Node) *string {
var innerChild *html.Node
for innerChild = range child.ChildNodes() {
//nolint:lll //it is what it is
for innerChild = child.FirstChild; innerChild != nil; innerChild = innerChild.NextSibling {
if innerChild.Type == html.ElementNode {
break
}
Expand Down

0 comments on commit a552a3a

Please sign in to comment.