summaryrefslogtreecommitdiff
path: root/bin/go-playground
blob: 37675d03177559104d3dd3dd2f5dac28adfc34fa (plain)
1
2
3
4
5
#!/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;