mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 04:22:22 +00:00
change router title
This commit is contained in:
parent
f622cc34a6
commit
6b802f7470
@ -1,4 +1,4 @@
|
||||
# 6.2. 现代 web 框架的 router
|
||||
# 6.2. router 请求路由
|
||||
|
||||
在常见的 web 框架中,router 是必备的组件。golang 圈子里 router 也时常被称为 http 的 multiplexer。在上一节中我们通过对 Burrow 代码的简单学习,已经知道如何用 http 标准库中内置的 mux 来完成简单的路由功能了。如果开发 web 系统对路径中带参数没什么兴趣的话,用 http 标准库中的 mux 就可以。
|
||||
|
||||
@ -87,4 +87,4 @@ r.PanicHandler = func(w http.ResponseWriter, r *http.Request, c interface{}) {
|
||||
目前开源界最为流行(star 数最多)的 web 框架 [gin](https://github.com/gin-gonic/gin) 使用的就是 httprouter 的变种。
|
||||
|
||||
## 原理
|
||||
TODO
|
||||
TODO
|
||||
|
Loading…
x
Reference in New Issue
Block a user