slices package not found
when i execute go get: go get -u github.com/gin-gonic/gin
error msg: gogogo/gin imports github.com/gin-gonic/gin imports golang.org/x/net/http2 tested by golang.org/x/net/http2.test imports slices: no Go source files
The project won't start
After I removed the reference to gin, the project returned to normal
The slices package was moved from the experimental library to the standard library in go version 1.21.
You can upgrade go version later than 1.21 or downgrade gin version.
It's seem that upgrade go version is a better way.
It's seem that upgrade go version is a better way.
OK thanks
Hello @wangqing-github, do you think this resolved your issue? If so, please close this issue so we can keep a nice and clean repository.
You can use such as "go get github.com/gin-gonic/[email protected]", do not add the -u parameter, this will only pull the dependencies of v1.8.2. After adding the -u parameter, you will try to automatically upgrade all Small versions of dependencies, higher versions of dependencies may use higher versions of golang features, such as slices