Does Go have no real way to shrink a slice? Is that an issue?
To perform an, in effect, a realloc of a slice: a = append([]T(nil), a[:newSize]…) // Thanks to @Dijkstra for pointing out the missing ellipsis. If it does a copy of newSize elements to a new memory place or if it does an actual in place resize as in realloc(3) is at complete discretion of the … Read more