]> Cypherpunks repositories - gostls13.git/commit
go/doc: linkify interface methods
authorDamien Neil <dneil@google.com>
Thu, 10 Jul 2025 22:43:43 +0000 (15:43 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 2 Sep 2025 16:37:43 +0000 (09:37 -0700)
commit1eec830f545ae9c75f143d7d5c757013d6d229be
tree04c902bde0c751be0c447eb356c4af2c7d2df50c
parent7bba745820b771307593b7278ce17464eeda2f3d
go/doc: linkify interface methods

Create doc links for references to interface methods,
such as "[Context.Err]".

This does not attempt to handle embedded interfaces:
The linked-to method must be declared within the named type.

Fixes #54033

Change-Id: I4d7a132affe682c85958ca785bcc96571404e6c1
Reviewed-on: https://go-review.googlesource.com/c/go/+/687395
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/go/doc/comment_test.go
src/go/doc/doc.go
src/go/doc/testdata/pkgdoc/doc.go