What's in the course
- 1.Introduction to Go0:00What makes Go different from other languages, getting it installed, and writing and running your first program.6 topics · 4 exercises
- 2.Constants, Variables and Basic Data Types6:25Making variables, all the number types and what to watch out for with them, strings, zero values and constants.7 topics · 14 exercises
- 3.Functions and Control Structures13:14Writing functions, returning more than one thing, handling errors the Go way, and if, else and switch.7 topics · 16 exercises
- 4.Arrays, Slices, Maps and Loops19:30Arrays, slices that can grow, maps, and all the ways to write a for loop in Go.6 topics · 14 exercises
- 5.Strings, Runes and Bytes26:36What strings actually look like under the hood, what runes and bytes are, and building strings without wasting time.7 topics · 13 exercises
- 6.Structs and Interfaces31:06Making your own types, giving them methods, and writing functions that take any type with the right methods.6 topics · 11 exercises
- 7.Pointers35:18What pointers are, how to use them without crashing your program, and why they go so well with functions.6 topics · 11 exercises
- 8.Goroutines40:06Running a bunch of functions at the same time, waiting for them to finish, and not corrupting your data while you're at it.7 topics · 6 exercises
- 9.Channels47:10How goroutines pass data to each other, buffered channels, closing them, and select.6 topics · 10 exercises
- 10.Generics52:56Writing one function that works for a bunch of types instead of copy-pasting it for each one.6 topics · 9 exercises
- 11.Building an API55:47Putting it all together and building a REST API with only the standard library: routing, JSON, token authentication middleware and request context.8 topics · 10 exercises
Extras
Side projects to build once you've got the basics, each following a video of its own. No exercises, just build along.
- Building Pong5:24A one-player Pong game with a score and a high score, built in a single file with the Ebitengine 2D game engine.9 steps · build along
- Testing in Go5:10Writing tests with the testing package and testify, the difference between unit and integration tests, and mocking out an API with dependency injection.6 steps · build along
- Authentication from Scratch10:37How login works on most websites, built step by step with only net/http: hashing passwords with bcrypt, session cookies and CSRF tokens.9 steps · build along