- 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.
推薦閱讀
- C語言程序設計(第3版)
- Manga Studio Ex 5 Cookbook
- C++ Builder 6.0下OpenGL編程技術
- PowerCLI Cookbook
- Python網絡爬蟲從入門到實踐(第2版)
- Android 9 Development Cookbook(Third Edition)
- NumPy Essentials
- Mastering Scientific Computing with R
- Visual C
- Swift細致入門與最佳實踐
- 編寫高質量代碼:改善Objective-C程序的61個建議
- Hands-On JavaScript for Python Developers
- Flask Web開發:基于Python的Web應用開發實戰(第2版)
- Training Systems Using Python Statistical Modeling
- Visual Basic程序設計實驗指導及考試指南