Last active
December 9, 2015 10:08
-
-
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.
This file contains hidden or 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
Show hidden characters
{ | |
//"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" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment