aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime2.go
diff options
context:
space:
mode:
authorMichael Matloob <matloob@golang.org>2025-05-21 12:18:03 -0400
committerMichael Matloob <matloob@golang.org>2025-05-21 09:58:00 -0700
commit2a5ac1a993efc463efdce7996efd356dabf03a25 (patch)
tree6e962316264f4526308edc29fc124f009f9468cb /src/runtime/runtime2.go
parent8b45a3f78b178ce66f419038a664cbd6a82ada54 (diff)
downloadgo-2a5ac1a993efc463efdce7996efd356dabf03a25.tar.xz
cmd/doc: allow go doc -http without package in current directory
go doc tries to find a package to display documentation for. In the case that no package is provided, it uses "." just like go list does. So if go doc -http is run without any arguments, it tries to show the documentation for the package in the current directory. As a special case, if no arguments are provided, allow no package to match the current directory and just open the root pkgsite page. For #68106 Change-Id: I6d65b160a838591db953fac630eced6b09106877 Reviewed-on: https://go-review.googlesource.com/c/go/+/675075 Reviewed-by: Alan Donovan <adonovan@google.com> Reviewed-by: Michael Matloob <matloob@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/runtime2.go')
0 files changed, 0 insertions, 0 deletions