-
新建项目目录
mkdir gintest -
修改go env
GO111MODULE = auto //这个修改为auto,原来是on -
下载框架
go get -u github.com/gin-gonic/gin -
init
go mod init gintest //gintest你的项目名称 -
如果提示
go: to add module requirements and sums:
go mod tidy
按提示运行go mod tidy
新建项目目录
mkdir gintest
修改go env
GO111MODULE = auto //这个修改为auto,原来是on
下载框架
go get -u github.com/gin-gonic/gin
init
go mod init gintest //gintest你的项目名称
如果提示
go: to add module requirements and sums:
go mod tidy
按提示运行go mod tidy
本文标题:安装gin框架的问题
本文链接:https://www.haomeiwen.com/subject/xclsudtx.html
网友评论