install on windows
-
download
https://golang.org/doc/install -
set environment variable
GOPATH = C:\Go
GOROOT = C:\Go\bin
run go on sublime text3
-
Ctrl+Shift+P
open package control -
install package
-
install gosublime plugin
-
create new build system
{
"cmd": ["go", "run", "$file_name"],
"file_regex": "^[ ]*File \"(…*?)\", line ([0-9]*)",
"working_dir": "$file_path",
"selector": "source.go"
}
save as golang.sublime-build
网友评论