Go Class: 05 Arrays, Slices, and Maps

Опубликовано: 17 Февраль 2026
на канале: Matt KØDVB
34,385
886

In this segment I talk about Go's built-in composite or "container" classes such as arrays, slices, and maps. For slices & maps, I expand on the concept of descriptor to help explain the difference between (say) a map's storage and a map variable, and demonstrate the phenomenon of aliasing. Of course, I end with an example program showing maps and slices and sorting (oh my!).

This is a bit long; in retrospect I probably could have split slices and maps into their own segments. Sigh.

Slides at: https://github.com/matt4biz/go-class-...

Code at: https://github.com/matt4biz/go-class-...

See also this neat visual cheat sheet: https://ueokande.github.io/go-slice-t...