douzang7928 2019-01-08 04:15 采纳率: 100%
浏览 66
已采纳

运行“ go doc”会导致“没有此类工具”错误

I've run into a very strange issue, and even though I'm sure the solution is simple, but I can't find anything online about this. Trying to use go doc <args...> for any set of arguments always results in the error:

go tool: no such tool "doc"

despite doc showing up in the command output for go help and go help doc providing documentation of and usage for go doc.

What's going on here? I even tried downloading the tar.gz bundle from golang.org because I figured maybe the version I installed with pacman was bad, but the unzipped go also had the same issue (with, of course, a properly altered GOPATH).

  • 写回答

1条回答 默认 最新

  • duannv2081 2019-01-09 23:48
    关注

    The problem was caused by the fact that my system version of go was gccgo v1.10.3 - installing go v1.11.4 resolved the issue.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 配置FPT报错,该如何处理
  • ¥15 请大家看一下这个代码咋写,一点思路都没有,最好能做一下,不要伪代码,有偿
  • ¥15 有偿请人帮写个安卓系统下禁止装软件及禁止拷入文件的程序
  • ¥100 用 H.265 对音视频硬编码 (CUDA)
  • ¥20 mpich安装完成后出问题
  • ¥15 stm32循迹小车代码问题
  • ¥15 输入一堆单词,使其去重输出
  • ¥15 qc代码,修改和添加东西
  • ¥50 Unity的粒子系统使用shadergraph(内置管线)制作的一个顶点偏移shader,但是粒子模型移动时,顶点也会偏移
  • ¥15 如何用python处理excel的数据(极值标准化)