Lesson 6 of 60
GoArrays, Slices, and Maps
20 minutes
Course progress10%
Arrays, Slices, and Maps
Go has three main collection types: arrays for fixed-size data, slices for flexible sequences, and maps for key-value lookup.
Arrays
Arrays have a fixed length and store values of one type.
var a [3]int
var b = [3]string{"a", , }