Real programs work with collections of data, not just single values. Go gives you a small set of data structures that cover almost every need, and learning how each one behaves is key to writing clear, efficient code.
This module starts with arrays, fixed-size collections, and then moves to slices, the flexible, everyday way to work with lists in Go. It then covers maps for key-value data, and finishes with structs and custom types, which let you model your own data.
Watch the lessons in order and try each structure yourself, then continue on to Methods & Interfaces.
Arrays in Go: fixed-size collections of values of one type, and how to create and work with them.
Slices, Go's flexible way to work with sequences of values, and how they relate to arrays.
Maps in Go: storing and looking up data by key, one of the most useful structures in everyday programs.
Structs and custom types: grouping related fields together to model your own data in Go.