Goland
原创经验JetBrainside小于 1 分钟
Goland
快捷
实现接口
光标停在结构体上,Ctrl + I,搜索要实现的接口即可
问题总结
下载依赖失败
可能是镜像网络问题
go env -w GOPROXY=https://goproxy.cn
Goland Debug
Version of Delve is too old for Go version 1.20.0 (maximum supported version 1.19)
这是 Goland 的 Dug
- 最简单粗暴的方法是升级 Goland 版本
- 方法二:
- 下载安装 dlv
go install github.com/go-delve/delve/cmd/dlv@latest - 配置 GoLand -> Help -> Edit Custom Properties
# 执行上述安装命令或默认安装到GOPATH目录下,即go安装路径 # Linux 可以执行 which dlv 查看路径 # Windows 可以执行 where dlv 查看路径 dlv.path=D:\\dev-tool\\go-1.21.5\\bin\\dlv.exe - 重启 Goland
- 下载安装 dlv
- win11 vscode配置golang开发环境,安装dlv失败 报错:found packages native (dump_other.go) and your_windows_architecture_is_not_supported_by_delve (support_sentinel_windows.go)
- 切换为Goland,无法运行golang代码 报错:badgerdb:Not enough memory resources are available to process this command
- 使用Goland Debug模式,仍然无法运行golang代码 报错:Goland Debug:unsupported architecture of windows/i386 - only windows/amd64 is supported 上述三个问题解决方式
go env -w GOARCH=amd64
