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

 

简介 · Go语言中文文档 (topgoer.com)

 

(2条消息) Gin框架学习--搭建gin框架,并运行起来_阳水平的博客-CSDN博客_gin框架搭建

posted @ 2021-09-08 10:53  jack-jin  阅读(302)  评论(0)    收藏  举报