Closed
Description
This proposal improves support for headings, lists, and links in Go doc comments,
while remaining backwards compatible with existing comments.
It includes a new package, go/doc/comment
, exposing a parsed syntax tree for
doc comments, and it includes changes to go/printer
and therefore gofmt
to format doc comments in a standard way.
For example, existing lists reformat from the display on the left to the one on the right:
![]() | ![]() |
URL links can be rewritten to change the display on the left to the one on the right:
![]() | ![]() |
And package doc comments (and others) can be rewritten to link to specific symbols:
![]() |
The full design doc is at https://github.com/golang/proposal/blob/master/design/51082-godocfmt.md.
Metadata
Metadata
Assignees
Type
Projects
Status
Done