-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/tools/cmd/godoc: link "package foo" and "foo package" in text when "foo" exists #4953
Comments
This request is somewhat underspecified to act upon. Questions to be answered: 1) What godoc text? Comments that shows up in documentation? Any godoc text (probably not). Something else? 2) When does a package exist? When it's in the std lib? Somewhere else? There already is a mechanism to highlight individual words in documentation comments, for instance to connect the documentation to parameter names in the documented function or method. That machinery is not used yet. It could be modified to do a bit more. |
1) Anything that we search for and linkify "http://example.com". 2) When godoc lists it in /pkg/. |
Why not markdown? It's conrete, easy-to-read and well-known. http://daringfireball.net/projects/markdown/syntax |
Issue #5852 has been merged into this issue. |
Issue #6207 has been merged into this issue. |
I think this specific feature request is "in the spirit of" the simple GoDoc style requirements in the same way that My use case is to be able to have well-documented package overviews which then link off to sub-packages for further reading. There is a concern that this could feature-creep (e.g. linking to a specific definition in a given package) but the simple case of linking to a package only seems pretty uncontroversial to me. |
Marking this 1.13 so it gets some visibility. |
documentation links are available for modern doc systems https://go.dev/doc/comment#links |
The text was updated successfully, but these errors were encountered: