Project structure

The main characteristic of microservices is their simplicity of structure. This simplicity does not mean the absence of robustness, but it means it is easy to read and understand the project development.

Our UsersService is also simple enough to make future modifications. You can be sure that this project is going to change a few times in your life cycle.

The structure of our project in the first version is as follows:

  • models.go
  • app.go
  • main.go

Let's see each of them and how they function.

Get Microservice Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.