Skip to content

Instantly share code, notes, and snippets.

@jonmorehouse
Last active August 29, 2015 13:56
Show Gist options
  • Save jonmorehouse/8835556 to your computer and use it in GitHub Desktop.
Save jonmorehouse/8835556 to your computer and use it in GitHub Desktop.
package main
import (
"os"
)
func main() {
path := "test.txt"
file, err := os.Create(path)
if err != nil {
return
}
kilobyte := make([]byte, 1)
file.Write(kilobyte)
file.Close()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment