var mySlice = []int{1,2,3,4,5}
len(mySlice) //this will return 5
cap(mySlice) //this will return 5
//Initialize a slice with length of 3, and capacity of 3
var mySlice = make([]int,3)
var mySlice = []int{1,2,3,4,5}
len(mySlice) //this will return 5
cap(mySlice) //this will return 5
//Initialize a slice with length of 3, and capacity of 3
var mySlice = make([]int,3)