Module 03 of 12

Data Structures

Lessons

About This Module

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.

Lessons

4 videos
01

Golang Tutorial #12: Arrays

Arrays in Go: fixed-size collections of values of one type, and how to create and work with them.

02

Golang Tutorial #13: Slices

Slices, Go's flexible way to work with sequences of values, and how they relate to arrays.

03

Golang Tutorial #15: Maps

Maps in Go: storing and looking up data by key, one of the most useful structures in everyday programs.

04

Golang Tutorial #20: Structs and Custom Types

Structs and custom types: grouping related fields together to model your own data in Go.