Go Cheatsheet
NewGo language reference — structs, interfaces, goroutines, channels, and generics.
Frequently Asked Questions
Does this cover goroutines and channels, or only basic syntax?
It covers concurrency directly. The built-in sections include goroutines, unbuffered and buffered channels, select, ranging over channels, and closing channels.
Does the sheet include Go generics?
Yes. There is a full Generics category with examples for type parameters, constraints with interfaces, comparable, and generic types like Stack[T].
Are common go commands included too?
Yes. The CLI Commands section covers go run, go build, go test, go mod init/tidy, go get, go fmt, and go vet.
Can I switch between a quick reminder and a fuller example?
Yes. Like the other language cheatsheets, it has a toggle that swaps the syntax block between short and full versions while keeping copy buttons for syntax and example.
Is this a complete Go style guide?
No. It is a practical snippet reference. It covers a lot of day-to-day syntax and error patterns, but it is not a full language spec or a complete guide to packages and idioms.