最近对go的框架进行了对比,决定用gin

安装与配置

安装:


$ go get gopkg.in/gin-gonic/gin.v1


​注意:确保 GOPATH GOROOT 已经配置​

导入:


import "gopkg.in/gin-gonic/gin.v1"