golang install

2018-04-07  本文已影响0人  LFBuildMountain

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

上一篇 下一篇

猜你喜欢

热点阅读