Summary
In this chapter, we discussed logic and loops. These are the foundational building blocks to build complex software. They allow you to have data flow through your code. They let you deal with collections of data by letting you execute the same logic on every element of the data.
Being able to define the rules and laws of your code is the starting point of codifying the real world in software. If you are creating banking software and the bank has rules about what you can and can’t do with money, then you can also define those rules in your code.
Logic and loops are essential tools that you’ll use to build all your software.
In the next chapter, we’ll look at Go’s type system and the core types it has available.