当前位置:网站首页>Develop go using vscode
Develop go using vscode
2022-06-13 04:33:00 【gohxc】
windows Environmental Science
1. install go Everyone is called golang
Download address :https://studygolang.com/dl
2. install vscode
Download address :https://code.visualstudio.com/
3. install vscode Of go
stay vscode Search in the store of go install go Language plug-ins
4. install vscode in go Need some bags
stay cmd Next
// find %GOPATH% Switch the directory of the disk where the directory is located :
cd %GOPATH%/src/github.com/golang
// If src There's no github.com/golang Please create your own
// After directory switching , Start downloading plug-in package :
git clone https://github.com/golang/tools.git tools When the download is complete , You'll find that %GOPATH%\src\github.com\golang One more. tools Catalog
Need to put tools Copy all files in the directory to %GOPATH%\src\golang.org\x\tools Next , If you do not have a directory, please create it by yourself
Start installation :
// Switch to GOPATH Under the table of contents , Execution related go install command
cd %GOPATH%
go install github.com/uudashr/gopkgs/cmd/gopkgs
go install github.com/fatih/gomodifytags
go install github.com/derekparker/delve/cmd/dlv
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/rogpeppe/godef
go install github.com/sqs/goreturns
go install github.com/golang/lint/golint such vscode Next go The plug-ins to be installed for development have been successfully installed
Other installations use the following methods
go get github.com/haya14busa/goplay/cmd/goplay
go get github.com/nsf/gocode
go get github.com/fatih/gomodifytags
go get github.com/josharian/impl
go get github.com/cweill/gotests/gotests
golang.org/x/net Installation method
cd %GOPATH%/src/golang.org/x/
git clone https://github.com/golang/net.git net
go install net
perform go install And then there was no hint , That means it's installed .
边栏推荐
- Introduction and use of ES6
- Tree array explanation
- 力扣刷题338.比特位计数
- PHP development 16 exit module
- 使用Service Worker优选请求资源 - 持续更新
- Zoom and move the H5 part of the mobile end
- Catalan number
- Sword finger offer 56 - I. number of occurrences in the array
- The could not find com scwang. smart:refresh-layout-kernel:2.0.3. Required by: project: the app cannot load the third-party package
- This Sedata uses multiple methods to dynamically modify objects and values in arrays. Object calculation properties
猜你喜欢

Express framework knowledge - Art template template, cookie, session

Call C function in Lua

Hugo blog building tutorial

Analysis of the implementation principle of an open source markdown to rich text editor

小程序基础入门(黑马学习笔记)

Small program imitating Taobao Jiugong grid sliding effect

Redis master-slave replication, sentinel mode, cluster

Li Kou brush question 647 Palindrome substring

Ctfshow SQL injection (231-253)

Redis数据持久化
随机推荐
个人总结的MVP框架
R: Employee turnover forecast practice
Alipay native components (hotel time selection)
如何优雅的处理async/await错误信息
Latex operation
Common terms of electromagnetic compatibility
你的一对一会议效率低下,你可以这么做!
Applet waterfall flow
出现Could not find com.scwang.smart:refresh-layout-kernel:2.0.3.Required by: project :app 无法加载第三方包情况
CTFSHOW 常用姿势篇(821-830)
力扣刷题647.回文子串
[sword finger offer] interview question 24 Reverse linked list
【剑指Offer】面试题24.反转链表
Day 007: go language string
Online audio adjustment technology summary
2019 Blue Bridge Cup
Redis data persistence
Data analysis report
php 18 首页的文章列表功能实现
PHP development 16 exit module