Slices and Loops
Go has two data structures:
Array
is a fixed length list.Slice
is an array that can grow or shrink. All elements inside the Slice needs to have the same data type.
Declare a Slice
cards := []string{}
// e.g.
cards := []string{newCard(), "Ten of Leafs", "Ace of Diamonds"}