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.
On Monday, 29 July 2019 04:46:48 UTC+5:30, DrGo wrote: > > 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, > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/586a1af6-a470-4970-a592-4b093384ef49%40googlegroups.com.