本文链接: https://blog.csdn.net/lishuangquan1987/article/details/118270451
版权
一般情况下,直接打命令:
go get github.com/gin-gonic/gin
会出现某些包下载不下来的情况
这时候,进行如下处理就好了
1.设置三个环境变量:
GO111MODULE:on
GOPROXY:https://goproxy.io
GOROOT:D:\go SDK\go1.16.4

2.go mod init xxx

3. go build

评论区