Create a slice from an array using the slice operator [low:high]:
arr := [5]int{1, 2, 3, 4, 5}
s := arr[1:4] // slice of elements 1, 2, 3 (indices 1-3)
The slice includes elements from index low up to but not including high. The resulting slice shares memory with the array. Changes to the slice affect the array and vice versa.