摘要:        
package main import ( "fmt" "github.com/gin-gonic/gin" ) func main() { router := gin.Default() router.GET("/cookie", func(context *gin.Context) { // 获    阅读全文
posted @ 2021-10-28 14:50
专职
阅读(577)
评论(0)
推荐(0)
        
            
        
        
摘要:        
package main import ( "github.com/gin-gonic/gin" "github.com/gin-gonic/gin/binding" "github.com/go-playground/validator/v10" "net/http" "time" ) type     阅读全文
posted @ 2021-10-28 14:23
专职
阅读(395)
评论(0)
推荐(0)
        
            
        
        
摘要:        
package main import ( "github.com/gin-gonic/gin" "log" "time" ) func Logger() gin.HandlerFunc { return func(context *gin.Context) { t := time.Now() //    阅读全文
posted @ 2021-10-28 10:28
专职
阅读(63)
评论(0)
推荐(0)
        
            
        
        
摘要:        
package main import ( "github.com/gin-gonic/gin" "net/http" "time" ) func main() { // 自定义http配置1 //router := gin.Default() //router.GET("/", func(cont    阅读全文
posted @ 2021-10-28 09:53
专职
阅读(234)
评论(0)
推荐(0)
        
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号