VSCode开发调试Go程序

1. 由于网络原因需要手动下载项目库

golang需要安装net和tools库,在github.com/golang下下载包

https://github.com/golang/net.git
https://github.com/golang/tools.git
https://github.com/golang/lint.git
https://github.com/golang/text.git
 

2. 解压到对应的目录下运行安装

go install github.com/mdempsky/gocode
go install github.com/ramya-rao-a/go-outline
go install github.com/acroca/go-symbols
go install golang.org/x/tools/cmd/guru
go install golang.org/x/tools/cmd/gorename
go install github.com/derekparker/delve/cmd/dlv
go install github.com/sqs/goreturns
go install github.com/golang/lint/golint
 

3. 关于调试功能

delve程序在windows下的安装只支持64位操作系统,所以需要对应安装64位的Go环境包
---------------------
作者:Yamg2021
来源:CSDN
原文:https://blog.csdn.net/myroom1990/article/details/81137242
版权声明:本文为博主原创文章,转载请附上博文链接!

你可能感兴趣的:(VSCode开发调试Go程序)