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