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