summaryrefslogtreecommitdiff
path: root/bin/go-playground
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2017-10-17 18:12:57 -0600
committermediocregopher <mediocregopher@gmail.com>2021-10-03 17:22:56 -0600
commit07ab3a77b44944a1ac234fbd717391f36370416e (patch)
treeedd959740bf9256bf38e9c2e3cacda8c555f8c56 /bin/go-playground
initial public commit
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;