A collection of reference pages — the parts of Go that are hard to remember on first try and worth keeping open in a tab. These aren’t lessons in the usual sense; dip into them whenever you need a quick reminder of syntax, verbs, or idioms. Most are also designed with technical interviews in mind — each page calls out the patterns interviewers love to ask about.
What’s in this section
fmtPrinting Cheatsheet — every format verb, plus width, precision, and flag characters- String Quotes Cheatsheet — when to use double quotes, single quotes, and backticks
stringsCheatsheet — search, split, join, transform, plus thestrings.Buildertrick for fast string concatenationstrconvCheatsheet — converting between strings and numbers (Atoi/Itoa,ParseInt/FormatInt, floats, bools)makeCheatsheet — building slices, maps, and channels: thelen/capargs,makevsnew, and the nil-vs-initialized trapsslicesCheatsheet — the Go 1.21+ slice package: sort, search, modify, comparemapsCheatsheet — built-in map idioms (comma-ok, map-as-set) plus the Go 1.21+mapspackageerrorsCheatsheet — idiomatic Go error handling:errors.New,fmt.Errorfwith%w,errors.Is/As, custom error types- Concurrency Cheatsheet — goroutines, channels,
select,syncprimitives, andcontext— all in one place - Go Gotchas Cheatsheet — the traps interviewers ask about: loop variable capture, slice aliasing, typed-nil interfaces,
defertiming, and more
More cheatsheets may land here as the course grows. Suggestions welcome.