Skip to content

Instantly share code, notes, and snippets.

@renanbastos93
Created January 10, 2022 09:57
Show Gist options
  • Save renanbastos93/37152fb1c05b1d7c52505d6c13dc933f to your computer and use it in GitHub Desktop.
Save renanbastos93/37152fb1c05b1d7c52505d6c13dc933f to your computer and use it in GitHub Desktop.
func useAppendWithLength() {
var arr = make([]int, 0, size)
for i := 0; i < size; i++ {
arr = append(arr, i)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment