初始化:go mod init 项目名称 安装gin包 go get -u github.com/gin-gonic/gin import "github.com/gin-gonic/gin" go mod tidy 下载依赖