美文网首页
golang install

golang install

作者: LFBuildMountain | 来源:发表于2018-04-07 14:43 被阅读0次

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

      本文链接:https://www.haomeiwen.com/subject/piryhftx.html