goquery icon indicating copy to clipboard operation
goquery copied to clipboard

error importing goquery: package iter is not in std

Open Okakura-Tenshin opened this issue 1 year ago • 2 comments

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

Okakura-Tenshin avatar Oct 10 '24 11:10 Okakura-Tenshin

You should upgrade Go to 1.23

wollomatic avatar Oct 11 '24 08:10 wollomatic

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

mna avatar Oct 11 '24 19:10 mna