DEV Community

Discussion on: A closer look at Go's append function

begmaroman profile image
Roman Behma

The capacity doesn't always double. When it's grown to ~1024 (depends on OS) there applies another logic to increase the capacity of a slice.

andyhaskell profile image
&y H. Golang (he/him) Author

Thanks for the feedback! Will update the post with that info