![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
golang
执念(⊙o⊙)…
这个作者很懒,什么都没留下…
展开
-
go生成uuid
这里使用的是这个库生成uuid,如下所示原创 2021-06-01 16:45:06 · 333 阅读 · 0 评论 -
gin接收前端传递参数
gin开发web接口时,获取前端传递的json数据是必有的需求。 // 省略代码 // 定义 struct type Test struct { Name string `json:"username"` Password string `json:"password"` } func PostTest(c *gin.Context()) { json := Test() c.BindJson(&json) c.JSON(http.StatusOk原创 2021-06-01 14:28:07 · 2486 阅读 · 0 评论