golang initialize slice with multiple same values code example Example: go slice initialization mySlice := []int{1, 2, 3, 4, 5}