Skip to content

Instantly share code, notes, and snippets.

@fizx
Created April 9, 2013 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fizx/5348143 to your computer and use it in GitHub Desktop.
Save fizx/5348143 to your computer and use it in GitHub Desktop.
package main
func main() {
buf := make([]int, 0)
for {
for i := 0; i < 1000; i++ {
buf = append(buf, i)
}
buf = buf[999:1000]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment