In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what to do if vscode is not available after installing the go plug-in. I hope you will get something after reading this article. Let's discuss it together.
After installing the ms-vscode.go plug-in in vscode, you can turn on support for the go language, but the ms-vscode.go plug-in depends on some tools.
The following are the steps for manually installing dependent tools:
Under the% GOPATH%\ src\ directory, create the path golang.org\ x
Go to% GOPATH%\ src\ golang.org\ x and download the source code git clone https://github.com/golang/tools.git that requires the tool (tools can be the name of another project)
When the clone is complete, a tools folder is generated so that the source code required by the tool is ready.
Go to% GOPATH% and execute:
Go install github.com/acroca/go-symbolsgo install github.com/cweill/gotestsgo install github.com/cweill/gotests/gotestsgo install github.com/golang/lint/golintgo install github.com/lukehoban/go-outlinego install github.com/newhook/go-symbolsgo install github.com/nsf/gocodego install github.com/ramya-rao-a/go-outlinego install github.com/rogpeppe/godefgo install github.com/sqs/goreturnsgo install github.com/tpng/gopkgsgo install github.com/zmb3/gogetdocgo install golang.org/x/ Tools/cmd/gorenamego install golang.org/x/tools/cmd/gurugo install sourcegraph.com/sqs/goreturns
If there are any errors in the above execution, please use go get first and then use the above command
Go get github.com/rogpeppe/godefgo get github.com/cweill/gotests/gotests
The source code for dealing with golint,golint alone is located in https://github.com/golang/lint. Enter% GOPATH%\ src\ golang.org\ x and execute git clone https://github.com/golang/lint to download the source code required by golint.
Go to% GOPATH% and execute:
Go install golang.org/x/lint/golint
In this way, the installation of the tools that vscode's golang plug-in depends on is complete.
After reading this article, I believe you have a certain understanding of "what to do after vscode installs the go plug-in". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.