Go is a language for fast, simple and reliable programs. The course starts with the basics and goes on to collections, Big O analysis, unit testing, SOLID principles, design patterns and REST APIs. Each lesson gives you a prompt, the code and its output. Choose a section below to begin.
- Go General Lessons: 39
The basics of Go: syntax, variables, data types, arrays, slices, operators, conditions, loops, functions, structs and maps. Start here if you are new to Go.
Start with: Go Tutorial → - Go Collections Lessons: 7
Everyday work with collections in Go: transform, filter, group and sort them, take parts of them and calculate totals.
Start with: Go Transforming Collections → - Go Big O Analysis Lessons: 8
How to measure how fast code runs and how much memory it uses, from constant time O(1) to exponential time O(2ⁿ), with examples in Go.
Start with: Go Big O Introduction → - Go Unit Testing Lessons: 5
How to write tests that show your Go code works: first tests, table-driven tests, testing errors and best practices.
Start with: Go Unit Testing → - Go SOLID Principles Lessons: 5
Five principles for code that is easy to change and maintain, each one shown with Go examples.
Start with: Go Single Responsibility Principle → - Go Design Patterns Lessons: 24
The 23 classic design patterns, such as Singleton, Factory Method, Observer and Strategy, each one with a Go example.
Start with: Go Design Patterns → - Go REST API Lessons: 8
How to build a REST API in Go: JSON, an HTTP server, routing, methods and status codes, middleware and a complete CRUD example.
Start with: Go REST API Introduction →