go安装主要依赖包

本文介绍了如何在VSCode中安装Go语言的依赖包,包括安装必要的插件,详细步骤为:下载golang.org包和其他模块,并在VSCODE中设置本地GOPATH以实现自动补全等功能。
摘要由CSDN通过智能技术生成

转载自:https://www.jianshu.com/p/b3c39a8be18e

vscode GO依赖包安装

安装必要插件

1、下载golang.org包

$ cd $GOPATH/src

$ mkdir golang.org

$ cd golang.org

$ mkdir x

$ cd x

git clone https://github.com/golang/lint.git

git clone https://github.com/golang/tools.git

git clone https://github.com/golang/sys.git

git clone https://github.com/golang/crypto.git

git clone https://github.com/golang/net.git

git clone https://github.com/golang/text.git

建立连接

mklink /d  D:\GO_PATH\src\golang.org\x  D:\GO_PATH\src\github.com\golang

git clone https://github.com/9fans/go D:/GO_PATH/src/9fans.net/go

go get -u -v github.com/rogpeppe/godef

cd $GOPATH/src/github.com/rogpeppe/godef

go clean -r -i

go install -v

2、下载其他模块

++go get github.com/golang/lint@master

++go get github.com/golang/tools@
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值