goquery
goquery copied to clipboard
error importing goquery: package iter is not in std
when i import goquery into my func it says error while importing github.com/PuerkitoBio/goquery: package iter is not in std (/usr/local/go/src/iter)compiler
You should upgrade Go to 1.23
Hello,
As wollomatic mentions in the previous comment, the latest version of goquery requires Go 1.23 (which provides that iter package in the stdlib). If you do not wish or cannot upgrade to Go 1.23, you can install the v1.9.x version of goquery, which works with Go 1.18+:
$ go get github.com/PuerkitoBio/[email protected]
Hope this helps, Martin