Skip to content

Instantly share code, notes, and snippets.

:~$ cat test.go
package main
import "os"
func main() {
file, err := os.OpenFile("helloworld", os.O_WRONLY|os.O_CREATE, os.ModePerm)
if err != nil {
panic(err)
}