Summary
This chapter explored Echo, a powerful and lightweight web framework for Go. We learned how Echo can simplify many everyday tasks in building REST APIs, such as data binding and validation, which become trivial. This powerful middleware system provides a clean way to provide extra functionality across our application, and its routing and handler system allows us to write clean and expressive code.
We applied what we learned to migrate our existing shopping list API so that it uses Echo, making it cleaner and easier to read. We also leveraged some Echo middleware to provide features such as CORS and JWT with minimal effort.
As we come to the end of this book, we have learned how to build a REST API using Go from the ground up, using the standard library, and understood the concepts behind API development. We explored important concepts for building modern APIs, such as the HTTP standard, security, performance, and observability. All this was applied to our API example...