码迷,mamicode.com
首页 > 其他好文 > 详细

Golang开发环境部署

时间:2019-09-15 18:30:16      阅读:76      评论:0      收藏:0      [点我收藏+]

标签:int   err   环境部署   代码   依赖包   hub   gpe   sky   code   

依赖包在golang.org ???

git clone https://github.com/golang/net.git $GOPATH/src/github.com/golang/net
git clone https://github.com/golang/sys.git $GOPATH/src/github.com/golang/sys
git clone https://github.com/golang/tools.git $GOPATH/src/github.com/golang/tools
git clone https://github.com/golang/sync.git $GOPATH/src/github.com/golang/sync
git clone https://github.com/golang/lint.git $GOPATH/src/github.com/golang/lint
git clone https://github.com/golang/text.git $GOPATH/src/github.com/golang/text

mkdir -p  $GOPATH/src/golang.org/x
cp -a $GOPATH/src/github.com/golang/  $GOPATH/src/golang.org/x

go get -v github.com/rogpeppe/godef
go get -v github.com/mdempsky/gocode
go get -v github.com/stamblerre/gocode
go get -v golang.org/x/tools/cmd/goimports
go get -v github.com/ramya-rao-a/go-outline
go get -v golang.org/x/tools/cmd/gopls
go get -u github.com/spf13/cobra/cobra

vscode go代码补全

https://maiyang.me/post/2018-09-14-tips-vscode/

Golang开发环境部署

标签:int   err   环境部署   代码   依赖包   hub   gpe   sky   code   

原文地址:https://www.cnblogs.com/yes5144/p/11523509.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!