我是靠谱客的博主 酷炫冷风,这篇文章主要介绍win10 vscode go语言开发安装vscode 的插件,现在分享给大家,希望可以做个参考。

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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(107)

评论列表共有 0 条评论

立即
投稿
返回
顶部