Copyright
Brief Table of Contents
Table of Contents
Preface
Acknowledgments
About this book
About the authors
Unit 0. Getting started
Lesson 1. Get ready, get set, Go
1.1. What is Go?
1.2. The Go Playground
1.3. Packages and functions
1.4. The one true brace style
Summary
Experiment: playground.go
Unit 1. Imperative programming
Lesson 2. A glorified calculator
2.1. Performing calculations
2.2. Formatted print
2.3. Constants and variables
2.4. Taking a shortcut
2.4.1. Declare multiple variables at once
2.4.2. Increment and assignment operators
2.5. Think of a number
Experiment: malacandra.go
Lesson 3. Loops and branches
3.1. True or false
3.2. Comparisons
3.3. Branching with if
3.4. Logical operators
3.5. Branching with switch
3.6. Repetition with loops
Experiment: guess.go
Lesson 4. Variable scope