英文:
Go Oracle not found?
问题
在使用Sublime设置我的新Go环境时,我想使用以下命令安装Oracle工具:
go get golang.org/x/tools/cmd/oracle
package golang.org/x/tools/cmd/oracle: cannot find package "golang.org/x/tools/cmd/oracle" in any of:
C:\Go\src\golang.org\x\tools\cmd\oracle (from $GOROOT)
C:\Users\User\Go\src\golang.org\x\tools\cmd\oracle (from $GOPATH)
我在这里做错了什么?
英文:
While setting up my new Go with Sublime I wanted to install Oracle tools with the following command
go get golang.org/x/tools/cmd/oracle
package golang.org/x/tools/cmd/oracle: cannot find package "golang.org/x/tools/cmd/oracle" in any of:
C:\Go\src\golang.org\x\tools\cmd\oracle (from $GOROOT)
C:\Users\User\Go\src\golang.org\x\tools\cmd\oracle (from $GOPATH)
What am I doing wrong here?
答案1
得分: 2
如果你查看包链接,你会发现它会抛出“未找到”错误(包链接在这里)。
根据这个链接,似乎该包已被重命名为"guru",这是正确的安装方式:
go get golang.org/x/tools/cmd/guru
英文:
If you check the package link you'll see it throws NOT FOUND (package link here)
Based on this, it seems that the package was renamed to guru, this is the correct installation:
go get golang.org/x/tools/cmd/guru
答案2
得分: 0
对我有效的命令是:
go get golang.org/x/tools/cmd/guru
(与之前相同,只是工具的新名称为guru,而不是oracle)
英文:
The command that works for me is:
go get golang.org/x/tools/cmd/guru
(the same as before, just with the new name of the tool - guru, instead of oracle)
答案3
得分: 0
如果 %GOBIN% // $GOBIN 在你的路径中,这个命令将会是魔法:
go get golang.org/x/tools/...
英文:
if %GOBIN% // $GOBIN is in your path, This command will be magic:
go get golang.org/x/tools/...
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论