Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasDirective ¶
func HasDirective(comments []*ast.CommentGroup, expected Directive) bool
HasDirective parses a directive from a given list of comments. If no directive is found, the second return value is `false`.
Types ¶
Click to show internal directories.
Click to hide internal directories.