linux环境, 我设置了GOPATH, 和GOROOT, GOPATH=/home/xx/projects/ , 然后再该目录下建立了src文件夹,
我用
go get -u github.com/gin-gonic/gin
以下是命令的输出, 死活不见gin在哪里,在程序里也无法引用,
go: github.com/gin-gonic/gin upgrade => v1.6.3
go: github.com/golang/protobuf upgrade => v1.4.2
go: gopkg.in/yaml.v2 upgrade => v2.3.0
go: github.com/json-iterator/go upgrade => v1.1.10
go: github.com/go-playground/validator/v10 upgrade => v10.3.0
go: github.com/modern-go/concurrent upgrade => v0.0.0-20180306012644-bacd9c7ef1dd
go: github.com/modern-go/reflect2 upgrade => v1.0.1
go: golang.org/x/sys upgrade => v0.0.0-20200625212154-ddb9806d33ae
go: google.golang.org/protobuf upgrade => v1.25.0
go get是不是被屏蔽了???
有疑问加站长微信联系(非本文作者)