Created
May 31, 2015 10:26
-
-
Save osxpeppermint/bfbb4c4b3dbb3fd6793b to your computer and use it in GitHub Desktop.
Go->Run (updated)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GoRun extends $Plugin | |
run:-> | |
path = $Document.info("go").path; | |
$Terminal.exec("go", "run", path, | |
(result)=> | |
if result.indexOf("No such file or directory") > -1 | |
$Dialog.alert("Compiler not found","To execute Go code, the Go compiler must be installed"); | |
); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment