Slices share underlying arrays:
arr := [5]int{1, 2, 3, 4, 5}
slice := arr[1:4]
slice[0] = 100
fmt.Println(arr[1]) // 100
Modifying the slice modifies the array. This is different from arrays, which copy. Be careful when multiple slices reference the same array.