Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution to the failure of vscode golint installation

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail the solution to the failure of vscode golint installation. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

What if the vscode golint installation fails?

The source of the problem is:

Because of the domestic network blocking, golang.org is harmonious, and catch up with 7.1, double efforts of the harmonious society, all kinds of FQ are inexplicable, so there is the following.

Solution Overview:

Download the source code of go tools and golint to the local directory from github and install it with the go install command.

Recommended tutorial: vscode tutorial

Specific methods:

1. Under the% GOPATH%\ src\ directory, create a golang.org folder, and then create a new x folder. The directory is "% GOPATH\ src\ golang.org\ x\"

2. After the directory switch is completed, start downloading the plug-in package: git clone https://github.com/golang/tools.git tools

3. After execution, there will be one more tools folder.

4. Open the vsCode terminal, switch to the terminal, enter the "% GOPATH" directory, and execute

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/josharian/impl go install github.com/rogpeppe/godef go install github.com/sqs/goreturns go install github.com/golang/lint/golint go install github.com/cweill/gotests/gotests 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/josharian/impl go install github.com/rogpeppe/godef go install github.com/sqs/goreturns go install github.com/cweill/gotests/gotests continues to install golint and switch to the "GOPATH" directory in cmd Execute git clone https://github.com/golang/lint.git, download glint to local copy% GOPATH%\ src\ github.com\ golang\ lint directory to% GOPATH%\ src\ golang.org\ x, do not copy source code disagree, forget it, copy execution: go install golang.org\ x\ lint\ golint, after installation, all go plug-ins are installed, restart vscode, see the effect Will not be prompted to pop up on the "solution to vscode golint installation failure" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report