最佳答案
func main(){
var array [10]int
sliceA := array[0:5]
append(sliceA, 4)
fmt.Println(sliceA)
}
Error : append(sliceA, 4) evaluated but not used
I don't Know why? The slice append operation is not run...