running godoc in a dir outside gopath

184 views
Skip to first unread message

DrGo

unread,
Jul 28, 2019, 7:16:48 PM7/28/19
to golang-nuts
Hello,

Wondering what I am doing wrong.

Using go13.beta1 (Darwin), I am running a freshly downloaded godoc in a dir that includes several of my own packages like this

godoc -http=localhost:6060 -goroot ~/local/git/

But on the browser, godoc is simply serving a list of all files in the dir (not extracting comments as it is does when I do not specify the -goroot flag). Anyone knows why?
Perhaps there is another way of making godoc work to show the documentation of my packages other than -goroot?

Thanks,


Agniva De Sarker

unread,
Jul 29, 2019, 12:33:11 AM7/29/19
to golang-nuts
Currently, godoc will only show documentation for GOPATH and GOROOT. Work is being done to make godoc work with modules.  Feel free to subscribe to https://github.com/golang/go/issues/26827.
Reply all
Reply to author
Forward
0 new messages