概述
vscode go win10开发
- 安装vscode 的插件
参考学习链接
学习参考链接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
最后
以上就是酷炫冷风为你收集整理的win10 vscode go语言开发安装vscode 的插件的全部内容,希望文章能够帮你解决win10 vscode go语言开发安装vscode 的插件所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复