Golang build installation packages
Click Preferences> Package control menu (MAC shortcut shift + command + p)
In the pop-up input box
install
select
Package control:install package
Then enter
Golang build
Select Golang build installation
Set configuration parameters
After installing click
Preferences Preferences> Package Setting> Golang Config > Setting - User
set some parameters
{
"PATH": "/usr/local/bin",
// 这里改成你自己的GOPATH
"GOPATH": "/Users/chenxiangan/go"
}
GOPATH can be obtained by running go env
run
ctrl + b for the first time will pop up such as a pile of go file run options, click on that run, ctrl + b directly after the run on the line.