Why Go, and Where It Came From
Go was designed at Google to keep large programs simple to read, quick to compile and easy to run concurrently, and it has stayed deliberately small and backwards compatible since version 1.0.
Connect Go's language and tooling choices to the kinds of programs they simplify.
Imagine you want to give colleagues a tool called tally that counts the words in any text file. Some use Windows, some use Macs, and none of them want to install a language runtime first. That wish, "one file that just runs, built from code anyone can read", is close to the reason Go exists. tally is also the program you will grow, piece by piece, through this whole course.
The rule
Go trades clever features for fast builds, plain code and easy concurrency.
Go was started in 2007 at Google by Robert Griesemer, Rob Pike and Ken Thompson. They were tired of huge programs that took ages to compile and were hard for new team members to read. It became open source in 2009, and Go 1.0 arrived in 2012 with a promise that still holds: code written for Go 1 keeps compiling on every later Go 1 release. New versions arrive about twice a year and add carefully, for example generics (2022) or looping over a plain number with range (2024).
Each part of the rule is a design choice:
- Fast builds: the compiler is quick even on large projects, and it produces a single native binary with no virtual machine to install. It can also cross-compile: build a Windows
tally.exeon a Mac. - Plain code: few keywords, one official formatting style (
gofmt), and no feature that lets two teams write the same thing in wildly different ways. Code you did not write still looks familiar. - Easy concurrency: goroutines (very cheap threads) and channels are built into the language, which is why so many servers and cloud tools use Go. Docker, Kubernetes and Terraform are all written in it.
Garbage collection means you rarely think about freeing memory, while static types catch mistakes at compile time rather than in front of a user.

