Skip to content

Instantly share code, notes, and snippets.

@ross-spencer
Created November 12, 2015 21:00
Show Gist options
  • Save ross-spencer/6776b33de01c2f5afaf8 to your computer and use it in GitHub Desktop.
Save ross-spencer/6776b33de01c2f5afaf8 to your computer and use it in GitHub Desktop.
Richard's example to make random files Golang
package main
import "io/ioutil"
func main() {
bigBuff := make([]byte, 750000000)
ioutil.WriteFile("bigfile.test", bigBuff, 0666)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment