golang install

install on windows

  1. download
    https://golang.org/doc/install

  2. set environment variable

    1. GOPATH = C:\Go
    2. GOROOT = C:\Go\bin

run go on sublime text3

  1. Ctrl+Shift+P open package control

  2. install package

  3. install gosublime plugin

  4. 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

你可能感兴趣的:(golang install)