is there a canonical way to generate documentation for offline use even using godoc?
Go 1.12 (February 2019) is clearer on that:
godocandgo docIn Go 1.12,
godocno longer has a command-line interface and is only a web server.
Users should usego docfor command-line help output instead.
go docnow supports the-allflag, which will cause it to print all exported APIs and their documentation, as thegodoccommand line used to do.
cmd/doc: add-allflag to print all documentation for packageUnlike the one for the old
godoc, you need the-uflag to see unexported symbols.
This seems like the right behavior: it’s consistent.