如何在Godoc中隐藏标准库?

huangapple go评论80阅读模式
英文:

How to hide standard libs in Godoc?

问题

我通常使用"godoc -http=0.0.0.0:6060"启动GoDoc服务器,以便与其他人共享文档。问题是它总是将内置库的文档与我的应用程序的文档混在一起。经过一些搜索,似乎目前不支持隐藏标准库的功能(如果有错误,请纠正)。

那么,有没有什么方法可以隐藏标准库?

或者换一种方式问,有没有办法选择要显示的路径/包?

英文:

I usually started the GoDoc server using "godoc -http=0.0.0.0:6060" for sharing document with stuffs. The prob is it always mix built-in libs' doc with my application's. After some search that std lib hiding feature seems not supported this moment.. (please correct if wrong)

So, is there any hack can help to hide the std libs?

Or to ask in different way, is there a way to select path / package to show?

答案1

得分: 5

你可以使用包路径并发送URL,例如:

http://localhost:9020/pkg/github.com/OneOfOne/xxhash/
英文:

You can't, but you can always use the package path and send the url, for example:

http://localhost:9020/pkg/github.com/OneOfOne/xxhash/

huangapple
  • 本文由 发表于 2014年9月9日 11:50:38
  • 转载请务必保留本文链接:https://go.coder-hub.com/25736420.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定