summaryrefslogtreecommitdiff
path: root/bin/go-playground
diff options
context:
space:
mode:
Diffstat (limited to 'bin/go-playground')
-rwxr-xr-xbin/go-playground5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/go-playground b/bin/go-playground
new file mode 100755
index 0000000..37675d0
--- /dev/null
+++ b/bin/go-playground
@@ -0,0 +1,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;