Gin is a web framework written in Go (Golang). It features a martini-like API with performance that is up to 40 times faster thanks to httprouter. If you need performance and good productivity, you will love Gin.
[cc lang='go']
package main
import "github.com/gin-gonic/gin"
func main() {
route := gin.Default()
route.GET("/", func(context *gin.Context) {
context.String(200,"hello gin")
})
route.Run(":9000")
}
[/cc]
上一篇:Go语言并发之goroutine
下一篇:gin框架之路由router
支付宝扫一扫打赏
微信扫一扫打赏
共 0 条评论关于"我的第一个gin项目"
最新评论