- Hands-On RESTful Web Services with Go
- Naren Yellavula
- 117字
- 2021-06-24 17:04:26
Introducing gorilla/mux – a powerful HTTP router
The word Mux stands for the multiplexer. gorilla/mux is a multiplexer designed to multiplex HTTP routes (URLs) to different handlers. Handlers are the functions that can handle the given requests. gorilla/mux is a wonderful package for writing beautiful routes for our API servers.
gorilla/mux provides tons of options to control how routing is done to your web application. It allows a lot of features, such as:
- Path-based matching
- Query-based matching
- Domain-based matching
- Sub-domain-based matching
- Reverse URL generation
Which type of routing to use depends on the types of clients requesting the server. We first see the installation and then a basic example to understand the gorilla/mux package.
推薦閱讀
- Qt 5 and OpenCV 4 Computer Vision Projects
- Learning Cython Programming(Second Edition)
- ASP.NET MVC4框架揭秘
- Access 數據庫應用教程
- Access 2010數據庫基礎與應用項目式教程(第3版)
- Hands-On C++ Game Animation Programming
- 零基礎學Python數據分析(升級版)
- PLC編程與調試技術(松下系列)
- Android系統級深入開發
- iOS自動化測試實戰:基于Appium、Python與Pytest
- UI設計全書(全彩)
- GitHub入門與實踐
- OpenCV 3計算機視覺:Python語言實現(原書第2版)
- Mastering Adobe Captivate 7
- Go語言從入門到精通