标签:res main ESS 参考 func contex route tps http
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.
github:https://gitee.com/yuxio/gin.git
package main import "github.com/gin-gonic/gin" func main() { r := gin.Default() r.GET("/ping", func(c *gin.Context) { c.JSON(200, gin.H{ "message": "pong", }) }) r.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080") }
参考:
3. Gin 教程
标签:res main ESS 参考 func contex route tps http
原文地址:https://www.cnblogs.com/embedded-linux/p/12589978.html