- Cloud Native programming with Golang
- Mina Andrawos Martin Helmich
- 195字
- 2021-07-02 20:03:42
Gorilla web toolkit
Now that we have covered how web Restful APIs work, it's time to understand how to best implement them in Go. The Go language comes with a very powerful web package in the standard library; Go also enjoys the support of numerous third-party packages. In this book, we will use a very popular Go web third-party toolkit called Gorilla web toolkit. The Gorilla web toolkit consists of a collection of Go packages that together helps build powerful web applications quickly and efficiently.
The key package in the Gorilla web toolkit ecosystem is called gorilla/mux. The mux package is described in the package documentation as a request router and dispatcher. This is basically a software component that accepts an incoming HTTP request, then decides what to do based on the nature of the request. For example, let's assume that a client sends an HTTP request to our web server. The HTTP router dispatcher component in our web server can then detect that the incoming request includes a GET method with a relative URL of ../events/id/1345. It will then retrieve the information of the event ID 1345 and send it back to the client.
- 現(xiàn)代數(shù)據(jù)通信技術(shù)與應(yīng)用
- 電子線路CAD與實(shí)訓(xùn)
- 電子線路
- 車聯(lián)網(wǎng)
- Android移動應(yīng)用開發(fā)基礎(chǔ)教程(微課版)
- 機(jī)載激光雷達(dá)基礎(chǔ)原理與應(yīng)用
- 深入淺出5G核心網(wǎng)技術(shù)
- 無線通信中的空時與協(xié)作信號處理
- 液晶彩電易損電路上門維修速查手冊
- 電子信息裝備體系論證理論、方法與應(yīng)用
- 3D顯示技術(shù)、標(biāo)準(zhǔn)與應(yīng)用
- LTE/LTE-Advanced系統(tǒng)架構(gòu)和關(guān)鍵技術(shù)
- 現(xiàn)代通信技術(shù)及應(yīng)用(第3版)
- 開關(guān)電源工程化設(shè)計(jì)與實(shí)戰(zhàn):從樣機(jī)到量產(chǎn)
- 典型開關(guān)電源電路分析與檢修