Going Loopy: Iteration in Go
summary
Go is statically compiled and shows generalized iteration by building from C-style for loops to closures, channels and reflection with runnable examples. Uses the stdlib fmt and reflect, demonstrates type assertion with ok boolean, range over channels blocking until close, and spawning 100k+ goroutines on old hardware. Shows a generic map/reduce via the empty interface and reflect, reports microbenchmarks and that the examples actually run and print expected counts.
AI-written summary · about
chapters (12)
- 0:00Introduction to Go
- 3:35Packages and variables
- 6:17Slices and loops
- 9:21Panics and closures
- 12:31Functional programming
- 14:35Type systems and interfaces
- 19:17Type switching
- 21:43Iteration and functions
- 24:03Concurrency and channels
- 31:00Reflection in Go
- 37:08Interfaces and methods
- 39:31Performance and conclusion








