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

  1. fmt Printing Cheatsheet — every format verb, plus width, precision, and flag characters
  2. String Quotes Cheatsheet — when to use double quotes, single quotes, and backticks
  3. strings Cheatsheet — search, split, join, transform, plus the strings.Builder trick for fast string concatenation
  4. strconv Cheatsheet — converting between strings and numbers (Atoi/Itoa, ParseInt/FormatInt, floats, bools)
  5. make Cheatsheet — building slices, maps, and channels: the len/cap args, make vs new, and the nil-vs-initialized traps
  6. slices Cheatsheet — the Go 1.21+ slice package: sort, search, modify, compare
  7. maps Cheatsheet — built-in map idioms (comma-ok, map-as-set) plus the Go 1.21+ maps package
  8. errors Cheatsheet — idiomatic Go error handling: errors.New, fmt.Errorf with %w, errors.Is / As, custom error types
  9. Concurrency Cheatsheet — goroutines, channels, select, sync primitives, and context — all in one place
  10. Go Gotchas Cheatsheet — the traps interviewers ask about: loop variable capture, slice aliasing, typed-nil interfaces, defer timing, and more

More cheatsheets may land here as the course grows. Suggestions welcome.

Toggle theme (T)