-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Description
What is the URL of the page with the issue?
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Screenshot
What is the problem?
Code authors attempt to use doc links to link to members of structs or interfaces. Pkgsite does not generate anchors for those identifiers, so there is nothing to link to, and the doc link appears as [Transport.TLSNextProto].
This issue is widespread throughout the standard library, but net/http seems to have the most occurrences.
The options that I see are:
-
Remove the extraneous [] from net/http/server.go and other files
-
Update pkgsite to create anchors for members of structs and interfaces. https://tip.golang.org/doc/comment#doclinks says that doc links "refer to exported identifiers"; is an exported member of an exported type an "exported identifier"? If so, that seems to suggest there should be anchors for those identifiers.
-
Do nothing.
If a consensus is reached that option 2 is best, I would like to request that I be able to make the first attempt at modifying pkgsite.