]> Cypherpunks repositories - gostls13.git/commit
cmd/doc: add more convenient behavior for go doc -http with no args
authorMichael Matloob <matloob@golang.org>
Wed, 21 May 2025 19:19:16 +0000 (15:19 -0400)
committerMichael Matloob <matloob@google.com>
Wed, 21 May 2025 20:03:47 +0000 (13:03 -0700)
commit4d6f49f6035b1f62c960f4ef66f41ef554de9243
treed8795b950e04df311afdd75a68fd2dc3e2d1b1b3
parentd54703c94ae906a5e851ae95909b6eb2f0314e19
cmd/doc: add more convenient behavior for go doc -http with no args

If we're in a module, go to the module's page. Outside of a module, but
in a workspace go to the home page, and outside of a module or
workspace, show the stdlib docs.

For #68106

Change-Id: I911a90a0e2b0a2bbb622f56e32827d5bdfa7f2fd
Reviewed-on: https://go-review.googlesource.com/c/go/+/675235
Reviewed-by: Michael Matloob <matloob@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/cmd/doc/main.go