Go basics
Go is a great language for writing microservices. It is relatively easy to learn and has a pretty smooth learning curve, making onboarding new engineers easier. While you may have already had some experience with Go, one of the purposes of this book is to provide enough information to all types of developers—from beginners to highly experienced professionals.
In this section, we are going to summarize important concepts of the language. If you already have experience with Go, you can still quickly scan through this part. It also includes some useful recommendations and best practices commonly missed even by experienced engineers.
Core principles
Before we proceed to look at the basics of Go, I’m going to share with you some fundamental principles that will help you make decisions when writing and organizing your code. These principles include the following:
- Always follow the official guidelines. It is not uncommon for us engineers to have strong...