CHAPTER 2
Quickstart
Let’s get started! But before we get to the fun part, which is writing code, it’s important to make sure we have an environment in which we can write Go code, compile it, and run it as well.
Once we have our environment set up, we’ll take a look at some of the basic building blocks of the Go language, such as the different kinds of control flow, and how they work together.
Once you’ve finished this chapter, you’ll be able to answer the following questions:
• How do you install Go on a Windows, Linux, or macOS machine?
• How can you find out how to install Go from source?
• How does basic control flow work in Go?
Installing Go
As with most languages, installing Go on your system is as simple as running a few system ...
Get Tanmay Teaches Go: The Ideal Language for Backend Developers 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.