go语言之gin框架环境安装
1、设置国内包源
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
#这样的话下载包很快
go env
2、安装
go get github.com/gin-gonic/gin@latest
或者:go mod download github.com/gin-gonic/gin@latest
1、设置国内包源
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
#这样的话下载包很快
go env
2、安装
go get github.com/gin-gonic/gin@latest
或者:go mod download github.com/gin-gonic/gin@latest