win10 vscode go语言开发

vscode go win10开发


参考学习链接
学习参考链接2

安装vscode 的插件

安装go
go下载

出现运行问题时,发现有些是因为网络原因无法下载

main.go:10:2: github.com/dgrijalva/jwt-go@v3.2.0+incompatible: Get "https://proxy.golang.org/github.com/dgrijalva/jwt-go/@v/v3.2.0+incompatible.zip": dial tcp 172.217.160.81:443: connectex: 
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.       
main.go:11:2: github.com/gin-gonic/gin@v1.7.4: Get "https://proxy.golang.org/github.com/gin-gonic/gin/@v/v1.7.4.zip": dial tcp 172.217.160.81:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

在windows的命令行输入

go env -w GOPROXY=https://goproxy.cn
7 然后在命令行继续逐条输入如下指令:

go install golang.org/x/tools/gopls@latest
go install github.com/nsf/gocode@latest
go install golang.org/x/lint/golint@latest
go install github.com/lukehoban/go-find-references@latest
go install github.com/lukehoban/go-outline@latest
go install sourcegraph.com/sqs/goreturns@latest
go install golang.org/x/tools/cmd/gorename@latest
go install github.com/tpng/gopkgs@latest
go install github.com/newhook/go-symbols@latest

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

不对法

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值