Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 02 · From Scratch · Redis · about 15 min to read

Play it as a journeyTutor comes with a plan

Reading Go in twenty minutes

The Map
The Map · Open board

: the first build in this track, drawn as the walls it hits in order. Every wall is written in the same few Go words this lesson teaches you to read.

Lesson 6 of 117 in From Scratch

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • The moment you open the code and stop
  • How to read a Go file: top to bottom, three kinds of line
  • type Server struct: a struct is a record with named fields
  • []Server: a slice is a list that can grow
  • map[string]int: a map finds a value by its key
  • error: a failure comes back as a second answer
  • go and chan: a goroutine is a function that runs at the same time

Terms it explains: package, struct, slice, map, error, goroutine, channel.

Review From Scratch