Scaffolding an example application
We have covered the general recommendations for writing and organizing Go applications and we are finally ready to start writing the code! In this section, we are going to introduce an application, consisting of multiple microservices that are going to be used throughout the book. In each chapter, we are going to add to or improve them, converting them from small examples into production-grade services that are ready to be used.
You will learn how to scaffold microservice code and split the code into separate logical parts, each having its own role. We are going to apply the project structure and Go knowledge you gained in this chapter to illustrate how to set the right structure for each service and write its code in a conventional and idiomatic way.
Movie application
Let’s imagine we are building an application for movie lovers. The application would provide the following features:
- Get the movie metadata (such as title, year...