Reference in Go
Reference collects the whole course on one page.
In this chapter, you will:
- find the syntax for every topic in one place
- run short reminders of each feature
What each lesson covers:
- Go Cheat Sheet: A lookup page for the whole course: one table per topic, from data types and keywords to files, JSON, goroutines and context.
This chapter has 1 lesson. Plan on about 24 minutes, with 4 exercises to check what you learned. Every example is real Go code: change it, run it again and compare the output, which is the fastest way to learn how each feature behaves.
The cheat sheet follows the order of the course. It starts with data types, keywords and operators, then conditional statements, loops and functions. It moves on to packages and modules, string methods and formatting, date and time, and collections such as arrays, slices and maps.
Next come pointers and structs, interfaces and generics, error handling, file handling and JSON. The page ends with goroutines, channels and synchronization, then reflection and context. Each section is a short table with a small example you can run.
Simple lesson: use the cheat sheet to look things up, and the lessons to learn them.
Lessons in this section
- Go Cheat Sheet
A lookup page for the whole course: one table per topic, from data types and keywords to files, JSON, goroutines and context.
- Find the syntax for any course topic quickly
- Recall the key rule for each lesson
- Run short reminders of each feature