Open adg opened 11 years ago
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
I think this specific feature request is "in the spirit of" the simple GoDoc style requirements in the same way that http://
links are. They are regular comments that make sense on their own.
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.