List of Figures

 

Lesson 1. Get ready, get set, Go

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

Figure 1.2. The Go Playground

Lesson 3. Loops and branches

Figure 3.1. True if either a || b is true (or)

Figure 3.2. True if both a && b are true (and)

Lesson 6. Real numbers

Figure 6.1. The %f format verb

Figure 6.2. Output formatted with a width of 4, precision of 2

Lesson 7. Whole numbers

Figure 7.1. Carrying the 1 in binary addition

Figure 7.2. Where should the carry go?

Lesson 12. Functions

Figure 12.1. The Intn function declaration and calling the Intn function

Lesson 13. Methods

Figure 13.1. A method declaration

Lesson 16. Arrayed in splendor

Figure 16.1. Planets with indices 0 through 7

Lesson 17. Slices: windows into arrays

Figure 17.1. Slicing the solar system

Lesson 18. A bigger slice

Figure 18.1. append allocates a new array with increased capacity when necessary.

Lesson 19. The ever-versatile map

Figure 19.1. A map with string keys and integer values

Lesson 21. A little structure

Figure 21.1. Latitude and longitude in decimal degrees

Lesson 26. A few pointers

Figure 26.1. address points to answer

Figure 26.2. administrator points to bolden

Figure 26.3. administrator and major point to bolden

Figure 26.4. administrator now points to lightfoot

Lesson 30. Goroutines and concurrency

Figure 30.1. How the gophers look together

Figure 30.2. Gopher pipeline