https://github.com/gin-gonic/gin#contents

安装gin的时候:go get -u github.com/gin-gonic/gin

有效:go mod init gins.go

   输入go mod init +“文件名称”,例子中文件名称为test.go,所以我们输入go mod init test回车运行后会在当前目录下生成一个go.mod文件

继续:go get github.com/gin-gonic/gin(无效)

使用:go mod tidy