Go course

A practical course that goes from installing the toolchain to three capstone projects. Every lesson is a manual: a complete program, the command that builds it, and the output it printed on the machine described at the end of the lesson. The course is written and published part by part, and the tree below lists the lessons that are ready to read.

Values, slices and maps come first, then functions, errors and pointers, because they carry every later decision. Interfaces, generics and the error chain follow, then tests and debugging, the build and module system, concurrency and the standard library. The last three parts build a JSON parser, a task manager and an HTTP service, one lesson at a time.

The tools around the tests have their own group: Testing Go code covers the go test command, assertions and the libraries, httptest, fakes and mocks, golden files, fuzzing, benchmarks and CI, without repeating the lessons.

Start with What Go is and where it runs. For a short description of the language read Go basics, and for the tools this course was checked with see an editor, gofmt, go vet and go doc.

Lessons

Click a part of the course to open or close its lessons.