:= make([]int,10.000)
and then I split it like newData := data[5000: ]
I don't allocate any new memory, right?
Is it just a reference to the same underlying data?
right
but newData is a new slice with 5000 positions
Обсуждают сегодня