Module 02 · From Scratch · Redis · about 15 min to read
Reading Go in twenty minutes
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
Saved in this browser, and to your account when you sign in.