Documentation
¶
Overview ¶
Package gocomment turns OpenAPI description text into Go comment lines.
Descriptions are CommonMark and often carry inline HTML. Go comments are plain text, so markup is translated to readable text: links keep their text and absolute target, line-break tags become paragraph breaks, and other tags and emphasis markers are removed. Paragraphs are wrapped to a fixed width so generated comments read like hand-written ones.
Index ¶
Constants ¶
View Source
const Width = 76
Width is the preferred maximum length of comment text on one line. Words longer than the width, such as URLs, are never split.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.