Using the Echo Framework
In the previous chapter, we explored how to incorporate GORM into our shopping list project. In this chapter, we will use the Echo framework to handle routing, middleware, and request handling. As in the case of GORM, this is not necessarily an improvement over the standard library; it is more a matter of taste and convenience. We will see how a framework such as Echo can reduce boilerplate code and quickly get you up to speed when building REST APIs.
Throughout this chapter, we’ll explore the following topics:
- What Echo is and why you might want to use it (or not)
- How to set up Echo for your project
- Working with Echo’s routing system
- Using Echo’s middleware
- Migrating our shopping list API so that it uses Echo