Skip to content

Instantly share code, notes, and snippets.

@osxpeppermint
Created May 31, 2015 10:26
Show Gist options
  • Save osxpeppermint/bfbb4c4b3dbb3fd6793b to your computer and use it in GitHub Desktop.
Save osxpeppermint/bfbb4c4b3dbb3fd6793b to your computer and use it in GitHub Desktop.
Go->Run (updated)
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