jjzjj

SublimeLinter 的 GoType 问题

我对Go有点陌生,我一直在尝试使用SublimeLinter-contrib-gotype包来整理我的文件。它在大多数情况下运行良好,但出于某种原因,如果我尝试从GitHub导入Go包,它会抛出错误。我一直在尝试使用Echo中的简单示例框架。当我运行代码时,它运行良好,但出于某种原因,linter导致了问题。它抛出一个错误说:couldnotimportgithub.com/labstack/echo(can'tfindimport:)我已经运行了gogetgithub.com/labstack/echo命令,但它似乎没有帮助。我也附上了截图:和here是指向我正在使用的代码的链接。

Go 没有安装 gotype 命令?

我从异地获得了Go1.4/Win32。我看到文件夹“c:\go\bin”。其中没有gotype命令。我需要gotype--gotype在哪里,如何安装? 最佳答案 2015年4月更新:Go1.5应该引入“godoc”:参见review9227:cmd/go,cmd/doc:添加“godoc”review9226:将doc.go重命名为alldocs.go为“godoc”做准备Addthenewgodoccommandtothegocommand,installedinthetooldirectory.usage:godoc[-u][

GoSublime 的 GoLint/GoType 不工作(没有重复)

在Sublime3的Debian测试中启用/检测GoSublime+Linters时遇到问题。我已经在OSX和Windows机器上完成了六次,没有失败。ST控制台显示:SublimeLinter:debugmode:offSublimeLinter:annotationsactivated:SublimeLinter:WARNING:golintdeactivated,cannotlocate'golint'SublimeLinter:WARNING:gotypedeactivated,cannotlocate'gotype'SublimeLinter:WARNING:govetdea

GoSublime 的 GoLint/GoType 不工作(没有重复)

在Sublime3的Debian测试中启用/检测GoSublime+Linters时遇到问题。我已经在OSX和Windows机器上完成了六次,没有失败。ST控制台显示:SublimeLinter:debugmode:offSublimeLinter:annotationsactivated:SublimeLinter:WARNING:golintdeactivated,cannotlocate'golint'SublimeLinter:WARNING:gotypedeactivated,cannotlocate'gotype'SublimeLinter:WARNING:govetdea