Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommentFromCUEGroup ¶ added in v0.1.0
CommentFromCUEGroup creates an ast.CommentList from a Comment.
Original line breaks are preserved, in keeping with principles of semantic line breaks.
func CommentFromString ¶ added in v0.1.0
CommentFromString takes a string input and formats it as an ast.CommentList.
Line breaks are automatically inserted to minimize raggedness, with a loose width limit the provided lim.
If the jsdoc param is true, the resulting comment will be formatted with JSDoc ( /** ... */ )-style. Otherwise, ordinary comment leader ( // ... ) will be used.
The returned ast.CommentList will have the default CommentAbove position.
Types ¶
Click to show internal directories.
Click to hide internal directories.