This article is provided by the go language tutorial column to share with you how to install Go Gin to solve the problem of domestic go get installation timeout. I hope it will be helpful to friends in need!
CentOS 7 OCI 8 安装
go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn,direct//这个一定要写你自己的项目go mod init YourProjectName go get -u github.com/gin-gonic/gin
package mainimport "github.com/gin-gonic/gin"func main() { r := gin.Default() r.GET("/ping")}
The above is the detailed content of What should I do if the domestic go get installation prompt times out? (Attached is the solution). For more information, please follow other related articles on the PHP Chinese website!