摘要: GET url: http://127.0.0.1:8080/users/{id} http://127.0.0.1:8080/users/1 对于id值的获取 package main import ( "github.com/gin-gonic/gin" ) func main() { rout 阅读全文
posted @ 2021-01-13 20:24 卷毛狒狒 阅读(301) 评论(0) 推荐(0) 编辑
摘要: package mainimport ( "github.com/gin-gonic/gin")func main() { router := gin.Default() router.GET("/user", func(c *gin.Context) { c.JSON(200 , gin.H{ " 阅读全文
posted @ 2021-01-13 20:07 卷毛狒狒 阅读(186) 评论(0) 推荐(0) 编辑
摘要: package mainimport ( "github.com/gin-gonic/gin")func main() { router := gin.Default() router.GET("/user", func(c *gin.Context) { c.JSON(200 , gin.H{ " 阅读全文
posted @ 2021-01-13 19:51 卷毛狒狒 阅读(104) 评论(0) 推荐(0) 编辑