diff options
| author | Ian Alexander <jitsu@google.com> | 2026-02-20 00:24:55 -0500 |
|---|---|---|
| committer | Ian Alexander <jitsu@google.com> | 2026-02-27 13:49:45 -0800 |
| commit | 5055a181560b09170a23be81612ee849e47b0a30 (patch) | |
| tree | 8c3e4b4281d8d4319aa14189b03e95c1905f28d1 /src/runtime/string.go | |
| parent | 76222756d9674a41b01a11d123ce39a7b26eb7fc (diff) | |
| download | go-5055a181560b09170a23be81612ee849e47b0a30.tar.xz | |
cmd/go/internal/doc: support @version suffix on first argument
This change allows `go doc` to display documentation for packages
outside the workspace by explicitly providing a version (e.g., `go doc
pkg@version`) or by inferring it from an installed command.
Therefore, all of the following are now valid:
```
go doc txtar@v0.13.0
go doc txtar@v0.13.0 FS
go doc txtar.FS@v0.13.0
go doc golang.org/x/tools/txtar@v0.13.0
go doc golang.org/x/tools/txtar@v0.13.0 FS
go doc golang.org/x/tools/txtar.FS@v0.13.0
```
Fixes #63696.
Change-Id: I22fb68e29c7f62bbe0bb240b82e5b789edc653f2
Reviewed-on: https://go-review.googlesource.com/c/go/+/747380
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@google.com>
Diffstat (limited to 'src/runtime/string.go')
0 files changed, 0 insertions, 0 deletions
