diff --git a/bin/go-playground b/bin/go-playground index 64633a9..b1b9661 100755 --- a/bin/go-playground +++ b/bin/go-playground @@ -1,5 +1,42 @@ #!/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; + +set -e -x + +cd "$(mktemp -d)" + +cat >main.go <shell.nix <