当前位置:网站首页>Go-4-在vim中无法跳转到源代码
Go-4-在vim中无法跳转到源代码
2022-08-02 14:56:00 【hahyyy】
正常情况下,在vim中要跳转到源代码
快捷键:CTRL + ]
返回vim
快捷键:CTRL + o
问题:could not find ‘guru’
# 设置module管理模式
go env -w GO111MODULE=on
# 设置下载源
go env -w GOPROXY=https://goproxy.cn
# 获取guru安装
go get golang.org/x/tools/cmd/guru
# 这一步如果获取不到,需要在当前目录下,创建一个新的文件夹
mkdir /test
cd /test
# 在新文件夹里进行初始化,生成一个go.mod文件
go mod init mycode
# 编译
go build golang.org/x/tools/cmd/guru
# 放进目录
mv guru $(go env GOROOT)/bin
边栏推荐
猜你喜欢
已经2022下半年了,居然还在说链动2+1!
Selenium元素定位方法总结
基于mobileNet实现狗的品种分类(迁移学习)
语音直播系统——做好敏感词汇屏蔽打造绿色社交环境
2022 Security Officer-A Certificate Exam Questions and Mock Exam
Based on mobileNet dog breed classification (migration)
【Leetcode字符串--字符串变换/进制的转换】HJ1.字符串最后一个单词的长度 HJ2.计算某字符出现次数 HJ30.字符串合并处理
DC-DC选型及电路设计
Apache APISIX 2.15 版本发布,为插件增加更多灵活性
ShardingSphere基本介绍及核心概念
随机推荐
Linux系统中mysql数据库的基本管理
leetcode 504. Base 7 七进制数 (简单)
PAT Class A 1019 Common Palindrome Numbers
Qt | Qt 的项目文件.pro 文件详解
Qt | 通过创建一个简单项目了解 Qt Creator
PAT serie a 1137 final grades
高并发 MySQL 性能优化指南,自取
Qt | 控件之 QCheckBox
Mechanical keyboard failure
SQL查询数据之多表(关联)查询
祝蔡徐坤生日快乐!
Reading is the cheapest and noblest
兆骑科创双创服务平台,创业赛事活动,投融资对接平台
软件代码签名证书怎么申请
How to check the WeChat applet server domain name and modify it
多线程------实际篇
System delay tasks and scheduled tasks
MySQL 视图(详解)
Basic management of system storage -- mounts, partitions, user quotas
How to use PHP to implement lexical analyzer and custom language