摘要:
package main import ( "fmt" "github.com/gin-gonic/gin" "net/http" "reflect" "runtime" ) func main() { r := gin.New() // 1. 添加中间件 r.Use(gin.Logger(), g 阅读全文
posted @ 2022-05-22 11:45
专职
阅读(106)
评论(0)
推荐(0)
摘要:
package main import ( "fmt" "github.com/gin-gonic/gin" "net/http" ) func main() { r := gin.Default() // 如果不设置代理,默认信任所有的代理 _ = r.SetTrustedProxies([]st 阅读全文
posted @ 2022-05-22 09:28
专职
阅读(493)
评论(0)
推荐(0)

浙公网安备 33010602011771号