-
Notifications
You must be signed in to change notification settings - Fork 17.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go/doc, x/pkgsite/cmd/pkgsite: Doc links not working for interface methods in scope #54033
Comments
I think this implies that the CC @jba |
Or that pkgsite doesn't make the interface methods linkable |
The long form link ( |
Doc links would be very useful to document packages that heavily rely on interfaces (like |
This is an issue for Demo: Using the provided package: $ go doc . Something
package foo // import "."
const Something = "Something"
See [Foo.Foo] or Bar.Foo or foo.Foo.Foo or foo.Bar.Foo.
Expected: $ go doc . Something
package foo // import "."
const Something = "Something"
See Foo.Foo or Bar.Foo or foo.Foo.Foo or foo.Bar.Foo.
(@Fryuni's workaround also works with |
CL 486815 (in which I add godoc links to |
It seems that |
Let's try to fix this for Go 1.22. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, built just now from master.
Build information
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Wrote this file:
What did you expect to see?
All 4 ways to link local methods should work.
What did you see instead?
The short version of links to interface methods are not working:
The text was updated successfully, but these errors were encountered: