loadout/bin/go-playground

6 lines
180 B
Plaintext
Raw Normal View History

2017-10-18 00:12:57 +00:00
#!/bin/sh
cd "$(mktemp -d)";
go mod init local-playground;
echo -e 'package main\n\nimport (\n\t"fmt"\n)\n\nfunc main() {\n\tfmt.Println("aloha")\n}\n' > main.go;
$EDITOR main.go;