mx-pua
Last Updated: February 25, 2016
·
388
· riyadhalnur
10309058 10152457564452360 4465802230248535815 n

Go Build System in Sublime Text 2

On Mac OSX,

Tools > Build System > New Build System...

Paste in the following code:

{ "cmd": ["go run '${file}'"], "selector": "source.go", "path": "/usr/local/go/bin", "shell": true }

Save the file as Go.sublime-build.

Sublime Text 2 will now recognise the file and set the build system automatically.

Press Cmd + B to build file/program.

Say Thanks
Respond