Go Cheatsheets

A comprehensive reference guide for Go programming language based on Go 1.24.1 documentation

Available Sections

Basics

Core Go language syntax and data structures, including variables, functions, control flow, arrays, slices, maps, and structs.

View Basics →

Advanced

Advanced Go concepts including interfaces, error handling, and generics.

View Advanced →

Concurrency

Go's powerful concurrency primitives, including goroutines, channels, and concurrency patterns.

View Concurrency →

Standard Library

Common packages and functions from Go's extensive standard library.

View Standard Library →

Tooling

Go tools for testing, building, and managing Go applications.

View Tooling →

About These Cheatsheets

These cheatsheets are designed to be quick reference for Go programmers of all levels. They provide concise examples of common patterns and syntax without extensive explanations. For comprehensive learning resources, please refer to the official Go documentation.

Contributing

These cheatsheets are maintained as part of the GoEcosystem initiative. Contributions are welcome through pull requests to our GitHub repository.

Getting Started

git clone https://github.com/GoEcosystem/go-cheatsheets.git
cd go-cheatsheets
bundle install
bundle exec jekyll serve
Server running at http://127.0.0.1:4000/go-cheatsheets/