下载
go get -u github.com/gin-gonic/gin
报错
go get: module github.com/gin-gonic/gin: Get "https://proxy.golang.org/github.com/gin-gonic/gin/@v/list": dial tcp 172.217.160.113:443: connectex: A connection
attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed
to respond.
解决方案
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
go get -u github.com/gin-gonic/gin
下载成功