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

Gin slices package not found

The project won't start 7e6047d6423f46c52ba44108a8a869fe

After I removed the reference to gin, the project returned to normal

Comment From: VarusHsu

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.

Comment From: VarusHsu

It's seem that upgrade go version is a better way.

Comment From: wangqing-github

It's seem that upgrade go version is a better way.

OK thanks

Comment From: pscheid92

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.

Comment From: catwrench

You can use such as "go get github.com/gin-gonic/gin@v1.8.2", 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