Hello gophers, godoc <https://golang.org/x/tools/cmd/godoc>, the local web server that displays documentation for Go packages (not to be confused with https://godoc.org, the website), has been updated with support for Go modules. (This was issue 33655 <https://golang.org/issue/33655>.)
Module-aware mode is enabled whenever it would be enabled for the go command. That is, module mode is enabled when a go.mod file <https://golang.org/cmd/go/#hdr-The_go_mod_file> is found in, or in a parent of, the directory where you run the godoc command. Documentation is displayed for packages in the build list <https://golang.org/cmd/go/#hdr-The_main_module_and_the_build_list>, which includes the main module and its dependencies. Environment variables <https://golang.org/cmd/go/#hdr-Environment_variables> such as GO111MODULE, GOPRIVATE, GOPROXY that control the behavior of the go command also affect godoc. As a reminder, the godoc command is no longer included in the binary distribution as of Go 1.13 <https://golang.org/doc/go1.13#godoc>. You can install the latest version from its source at golang.org/x/tools/cmd/godoc. If you run into unexpected problems, please let us know by leaving a comment on issue 33655 <https://golang.org/issue/33655>, filing a new issue <https://golang.org/issue/new?title=x%2Ftools%2Fcmd%2Fgodoc%3A+>, or replying to this thread. Thanks, Dmitri -- 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/CA%2BON-PFnPJiuAkO0eNruWwu0-atG2%2B-VqQ%3DyXSR%2BO5bV2FdXFQ%40mail.gmail.com.