Search code examples
gogodoc

How to hide standard libs in 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?


Solution

  • 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/