Skip to content
Sign inGet all access

GoPaid

Errors as values, goroutines, channels, and why there is no inheritance.

20 chapters · ~7 hours · 3 free

Chapters

  1. 01Getting StartedRunning code, packages, printing, and why unused things fail the build.8 minFree→
  2. 02Types & VariablesStatic and inferred, zero values, and no implicit conversion anywhere.18 minFree→
  3. 03Control FlowOne loop keyword, a switch that does more, and if with a statement.12 minFree→
  4. 04Strings, Runes & BytesWhy len is bytes, how to index characters, and building strings.10 min→
  5. 05Slices, Arrays & MapsViews over arrays, the aliasing trap, and maps that panic when nil.18 min→
  6. 06FunctionsMultiple returns, closures, variadics, and defer.16 min→
  7. 07Structs & MethodsFields, receivers, pointers, and composition instead of inheritance.32 min→
  8. 08InterfacesImplicit satisfaction, type switches, and the nil interface trap.22 min→
  9. 09ErrorsErrors as values, wrapping with %w, and errors.Is versus errors.As.16 min→
  10. 10Dates & TimesThe reference-date layout, durations, arithmetic and timezones.16 min→
  11. 11JSONStruct tags, decoding into structs, unknown shapes, and streaming.20 min→
  12. 12ConcurrencyGoroutines, channels, select, and the mutexes and atomics for shared state.56 min→
  13. 13ContextCancellation, deadlines, and the parameter every Go API takes first.18 min→
  14. 14GenericsType parameters, constraints, and generic types you write yourself.20 min→
  15. 15ReflectionHow encoding/json reads your struct tags, and what it costs.16 min→
  16. 16Packages, Modules & ToolingVisibility, init, go mod, project layout, and one static binary.12 min→
  17. 17TestingTable-driven tests, subtests, coverage and benchmarks — no framework.16 min→
  18. 18HTTP ClientsCalling other people's APIs — timeouts, JSON, uploads and streaming.20 min→
  19. 19HTTP ServersA server with no framework — routing, middleware, streaming and shutdown.20 min→
  20. 20The Standard Libraryos, flag, io, slog, regexp, and the rest worth knowing.18 min→