Skip to content

Instantly share code, notes, and snippets.

@timrandg
Created July 9, 2013 06:05
Show Gist options
  • Select an option

  • Save timrandg/5955052 to your computer and use it in GitHub Desktop.

Select an option

Save timrandg/5955052 to your computer and use it in GitHub Desktop.
build and run GO from sublime text 2
{
"cmd": ["go run '${file}'"],
"selector": "source.go",
"path": "/usr/local/go/bin",
"shell": true
}
@timrandg

timrandg commented Jul 9, 2013

Copy link
Copy Markdown
Author

place the go.sublime-build file in /Users/Tim/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/go.sublime-build

  1. "cmd": ["go run '${file}'"] allows for file names with spaces in them
  2. run code with command + B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment