Arrays and Structs
Learn about basic collections in Go.
Arrays
Arrays are similar to variables in that they store values, but they store multiple values. Rather than declaring various variables, we can group them into a single array. Each individual variable in the group is an element, and can be accessed via its position in the group. The first element of an array can be found at position 0
.
Get hands-on with 1400+ tech skills courses.