go doc 最新版本好像沒有 -http flag
来源:9-6 生成文档和示例代码

ZoneTw
2020-06-17
目前 go doc 的功能少了很多 flag 只剩下這些
Flags:
-all
show all documentation for package
-c symbol matching honors case (paths not affected)
-cmd
show symbols with package docs even if package is a command
-src
show source code for symbol
-u show unexported symbols as well as exported
好像就沒辦法跑之前的 -http :6060
還是這個功能由別的工具處理?
写回答
1回答
-
ccmouse
2020-06-17
这里说的是另一个工具,叫godoc。在配置proxy的情况下,可以通过go get-v golang.org/x/tools/cmd/godoc来安装
00
相似问题