Lesson 1. Get ready, get set, Go

 

After reading lesson 1, you’ll be able to

  • Know what sets Go apart
  • Visit the Go Playground
  • Print text to the screen
  • Experiment with text in any natural language

Go is the contemporary programming language of cloud computing. Amazon, Apple, Canonical, Chevron, Disney, Facebook, General Electric, Google, Heroku, Microsoft, Twitch, Verizon, and Walmart are among the companies adopting Go for serious projects (see thenewstack.io/who-is-the-go-developer/ and golang.org/wiki/GoUsers). Much of the infrastructure underlying the web is shifting to Go, driven by companies like CloudFlare, Cockroach Labs, DigitalOcean, Docker, InfluxData, Iron.io, Let’s Encrypt, Light Code Labs, Red Hat CoreOS, SendGrid, and organizations like the Cloud Native Computing Foundation.

Go excels in the data center, but its adoption extends beyond the workplace. Ron Evans and Adrian Zankich created Gobot (gobot.io), a library to control robots and hardware. Alan Shreve created the development tool ngrok (ngrok.com) as a project to learn Go, and has since turned it into a full-time business.

The community of people who have adopted Go call themselves gophers, in honor of Go’s lighthearted mascot (figure 1.1). Programming is challenging, but with Go and this book, we hope you discover the joy of coding.

Figure 1.1. Go gopher mascot designed by Renée French

In this lesson, you’ll experiment with a Go program in your web browser.

1.1. What is Go?

1.2. The Go Playground

1.3. Packages and functions

1.4. The one true brace style

Summary