Gorilla web toolkit 提供了好几个Golang Web开发工具,本站就使到了一些,很不错。
工具列表:
- gorilla/context stores global request variables.
- gorilla/mux is a powerful URL router and dispatcher.
- gorilla/reverse produces reversible regular expressions for regexp-based muxes.
- gorilla/rpc implements RPC over HTTP with codec for JSON-RPC.
- gorilla/schema converts form values to a struct.
- gorilla/securecookie encodes and decodes authenticated and optionally encrypted cookie values.
- gorilla/sessions saves cookie and filesystem sessions and allows custom session backends.
其中,本站使用的mux经过了修改,增加了过滤器链,参见:https://github.com/studygolang/mux