Skip to content

Instantly share code, notes, and snippets.

@dhulihan
Last active December 9, 2015 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhulihan/e9eed29fdfce0b54ee47 to your computer and use it in GitHub Desktop.
Save dhulihan/e9eed29fdfce0b54ee47 to your computer and use it in GitHub Desktop.
Basic Sublime Text build system for golang. Runs `go run` on your current tab by default.
{
//"name": "Go Run",
"cmd": ["/usr/local/go/bin/go", "run", "$file"],
"working_dir": "${file_path}",
"selector" : "source.go",
"env": {
//"GOPATH": "/path/to/go"
},
"variants": [
// variants available with ctrl+shift+b
{
"cmd": ["/usr/local/go/bin/go", "build", "$file"],
"name": "Build"
},
{ "cmd": ["/usr/bin/env"],
"name": "Env",
"env": {
//"GOPATH": "/path/to/go"
}
}
]
}
@dhulihan
Copy link
Author

dhulihan commented Dec 9, 2015

Screenshot

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