Go (Golang) cheat sheet with 30 sections for beginners
The page is a cheat sheet for Go (Golang), a programming language, with 30 sections. It covers syntax, types and conversions, slices and maps, structs, interfaces, generics (including the generic methods of Go 1.27), error handling, iterators, goroutines[1] and channels, context, JSON, net/http, time layouts, modules, testing, profiling, and the compiler errors developers most often meet.
Each section has short explanations and code examples. They include installing Go with Homebrew, winget or the official tarball, running the official golang Docker image, and the everyday commands go run, go build, go install, go vet and go fmt.
The page can be searched, filtered by level or Go version, and each line can be copied with one click. It also lints Go code, checks Printf verbs[2], and turns JSON into structs. The Toolchains section explains how the go line picks the toolchain[3] that runs a module.
Repository Go github.com
Go (Golang) is an open source programming language from Google, designed for simple, fast and reliable software.
Read the original tms-outsource.comDiscussion
Sources
-
TMS Outsource
A Go cheat sheet that can be useful to beginners



