Create a slice with values using a literal, just like arrays but without a size:
numbers := []int{1, 2, 3, 4, 5}
names := []string{"Alice", "Bob"}
Notice there's no number in the brackets. This creates a slice, not an array. Go automatically creates an underlying array to hold the values. The slice references this array.