So you’re adding a new item to a slice in Go. What’s the deal with the original array underneath? Does it stretch out to make room for more stuff?
Share this post
Go Secret - Slice: Be Careful When Resizing
Share this post
So you’re adding a new item to a slice in Go. What’s the deal with the original array underneath? Does it stretch out to make room for more stuff?