Created
January 10, 2022 09:57
-
-
Save renanbastos93/37152fb1c05b1d7c52505d6c13dc933f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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