by capo64 · 7y ago · 0 comments
That will allocate a slice that can fit length ints but has a length of 0 (so append starts at index 0).
You can call len(slice) and cap(slice) to see the difference, but append will insert an element at index len(slice), growing the capacity if necessary