摘要:        
package main import ( "fmt" "github.com/gin-gonic/gin" ) func main() { r := gin.Default() r.GET("/", func(context *gin.Context) { // 查询字符串映射 (http://1    阅读全文
posted @ 2021-10-27 14:44
专职
阅读(95)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1. 一般通过调用 c.Request.Body 方法绑定数据,但不能多次调用这个方法。 package main import ( "fmt" "github.com/gin-gonic/gin" ) type FormA struct { Foo string `form:"foo" json:    阅读全文
posted @ 2021-10-27 13:53
专职
阅读(484)
评论(0)
推荐(0)
        
            
        
        
摘要:        
package main import ( "fmt" "github.com/gin-gonic/gin" "net/http" "time" ) func main() { router := gin.New() // LoggerWithFormatter middleware will wr    阅读全文
posted @ 2021-10-27 10:51
专职
阅读(255)
评论(0)
推荐(0)
        
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号