A slice has only one element, named list, why can subslice list[1:] work? For example:
list := []int{1}
fmt.Println(list[1:])
fmt.Println(list[1])
The list hasn't the element with index 1, so the third line causes "panic: runtime error: index out of range", but why does the second line works well?