This cheat sheet is based on Go 1.26.

Table of Contents

Program structure

Variables, constants, and types

Control flow