router-link

cedar,轻量级 Golang 路由器,基于前缀树算法。 cedar.NewRouter().Get(prefix,http.HandlerFunc,http.Handler) 推荐组件 session 更新 现在支持了模糊路由匹配 r.Get("/index/:id",func(w http.ResponseWriter, r *http.Request){ fmt.Println(r.URL.Fragment) // <- use this ,get the `id` },nil) 全局方法 r.GlobalFunc("test", func(r *http.Request) error { fmt.Println("123213") return nil }) 支持常见的method r :=...

加载中
加载中

{{o.href}}

{{o.content | formatHtml}}

{{o.author.name}}
{{o.pubDate | formatDate}}
{{parseInt(o.viewCount) | bigNumberTransform}}

暂无相关内容

返回顶部
顶部