Gin可使用gin.Context.BindQuery或gin.Context.ShouldBindQuery將URL查詢參數(query string)轉為struct。
2024/3/21
Golang Gin 將請求參數綁定為struct
2024/3/20
Golang Gin BindJSON ShoudBindJSON 差別
Gin可用gin.Context.BindJSON或gin.Context.ShouldBindJSON將請求payload轉為struct,兩者差別如下。
2023/11/2
2023/10/31
2021/11/13
2021/11/10
Golang Gin Engine.HandleContext() 用途
Gin Engine.HandleContext(c *Context)的作用為路由重新導向(Router redirect)。
2021/8/9
2021/8/7
2021/8/5
2021/7/31
2021/7/8
2021/7/7
訂閱:
文章 (Atom)