golang有什么好的纯web路由框架推荐吗?

RT
已邀请:

Xanthus - 红红火火恍恍惚惚

赞同来自: buaazp

fasthttprouter

Akagi201 - http://akagi201.org

赞同来自: sambohuang

https://github.com/bmizerany/pat
最简单直接, 但是效率不高.
我的 web 框架在用. https://github.com/Akagi201/light

zensh - https://github.com/zensh

赞同来自: yuekcc

https://github.com/teambition/trie-mux

1. Support regexp (Trie)
2. Fixed path automatic redirection (Trie)
3. Trailing slash automatic redirection (Trie)
4. Automatic handle `405 Method Not Allowed` (Mux)
5. Automatic handle `501 Not Implemented` (Mux)
6. Automatic handle `OPTIONS` method (Mux)
7. Best Performance

与 httprouter 相比主要是支持正则,也很方便集成到其它 web 框架(通过 import 的方式,而不是 copy 代码的方式),效率比 httprouter 差一点点

ego008

赞同来自: yuekcc

我一直用 https://github.com/goji/goji

hunterhug - https://github.com/hunterhug年后找工作,准备深飘

```
路由自己写
```

SunisDown - @douban

https://github.com/julienschmidt/httprouter

要回复问题请先登录注册