summaryrefslogtreecommitdiff
path: root/bin/go-playground
blob: 64633a9b10338fb1364838dd977bdef54f30522b (plain)
1
2
3
4
5
#!/bin/sh
cd "$(mktemp -d)";
go mod init local-playground;
echo 'package main\n\nimport (\n\t"fmt"\n)\n\nfunc main() {\n\tfmt.Println("aloha")\n}\n' > main.go;
$EDITOR main.go;