Gin框架中文文档
Gin 是一个 go 写的 web 框架,具有高性能的优点。官方地址: https://github.com/gin-gonic/gin 带目录请移步 http://xf.shuangdeyu.com/movie/content.html?mid=25 ,简书markdown不支持目录生成 目录 [TOC] 安装 要安装Gin包,首先需要安装Go并设置Go工作区 1、下载并安装 $ go get -u github.com/gin-gonic/gin 2、在代码中导入它 import "github.com/gin-gonic/gin" 使用包管理工具Govendor安装 1、 go get govendor(安装) $ go get github.com/kardianos/govendor 2、创建项目文件夹并进入文件夹 GOPATH/src/github.com/myusername/project && cd "$_" 3、初始化项目并添加 gin $ govendor init $ govendor fetch github.com/gin-gonic/gin@v1.3 4、复制一个模板到你的项目 $ curl https://raw.githubusercontent.com/gin-gonic/gin/master/examples/basic/main.go >