slices: package slices is not in GOROOT 报错

F:\goenv\goproject\src\awesomeProject0921>go get -u github.com/gin-gonic/gin
github.com/gin-gonic/gin imports
        github.com/gin-gonic/gin/binding imports
        github.com/pelletier/go-toml/v2 imports
        slices: package slices is not in GOROOT (F:\goenv\go1.19.windows-amd64\go\src\slices)

F:\goenv\goproject\src\awesomeProject0921>go mod tidy
go: finding module for package github.com/gin-gonic/gin
go: found github.com/gin-gonic/gin in github.com/gin-gonic/gin v1.10.0
go: downloading github.com/stretchr/testify v1.9.0
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading github.com/go-playground/assert/v2 v2.2.0
go: downloading github.com/google/go-cmp v0.5.5
go: downloading gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543

用go mod tidy 处理冲突的包

 

posted @ 2024-09-21 13:21  滴滴滴  阅读(829)  评论(0编辑  收藏  举报