如何在本地轻松查看go document?

如何解决godoc无法找到的问题:

GolangDoc: Could not find godoc, (hint: is godoc installed?)

本文将介绍如何使用godoc查看go语言文档。

go get -v  golang.org/x/tools/cmd/godoc

启动Go Documentation Server

godoc -http=:6060

在浏览器中,打开url
http://localhost:6060

go document就呈现出来。

godoc的使用

很简单吧,你也可以试一下。

如果因为被墙了,可以尝试下从github下载后编译

参考

How to make “godoc” command work on my system?

相关文章:

  • 2022-12-23
  • 2021-10-10
  • 2021-11-05
  • 2021-11-04
  • 2022-02-15
  • 2021-07-09
  • 2021-11-04
  • 2021-12-03
猜你喜欢
  • 2021-05-21
  • 2022-12-23
  • 2021-10-10
  • 2023-03-06
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案