Documentation
¶
Index ¶
- type Maps
- func (maps Maps) Annotated(n ast.Node, annotation string) bool
- func (maps Maps) Comments(n ast.Node) []*ast.CommentGroup
- func (maps Maps) CommentsByLine(fset *token.FileSet, line int) []*ast.CommentGroupdeprecated
- func (maps Maps) CommentsByPos(pos token.Pos) []*ast.CommentGroup
- func (maps Maps) CommentsByPosLine(fset *token.FileSet, pos token.Pos) []*ast.CommentGroup
- func (maps Maps) Ignore(n ast.Node, check string) bool
- func (maps Maps) IgnoreLine(fset *token.FileSet, line int, check string) booldeprecated
- func (maps Maps) IgnorePos(pos token.Pos, check string) bool
- func (maps Maps) IgnorePosLine(fset *token.FileSet, pos token.Pos, check string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Maps ¶
type Maps []ast.CommentMap
Maps is slice of ast.CommentMap.
func (Maps) Comments ¶
func (maps Maps) Comments(n ast.Node) []*ast.CommentGroup
Comments returns correspond a CommentGroup slice to specified AST node.
func (Maps) CommentsByLine
deprecated
added in
v1.3.0
func (Maps) CommentsByPos ¶ added in v1.2.0
func (maps Maps) CommentsByPos(pos token.Pos) []*ast.CommentGroup
CommentsByPos returns correspond a CommentGroup slice to specified pos.
func (Maps) CommentsByPosLine ¶ added in v1.4.0
CommentsByPosLine returns correspond a CommentGroup slice to specified line.
func (Maps) Ignore ¶ added in v1.1.0
Ignore checks either specified AST node is ignored by the check. It follows staticcheck style as the below.
//lint:ignore Check1[,Check2,...,CheckN] reason
func (Maps) IgnoreLine
deprecated
added in
v1.3.0
Deprecated: This function does not work with multiple files. IgnoreLine checks either specified lineof AST node is ignored by the check. It follows staticcheck style as the below.
//lint:ignore Check1[,Check2,...,CheckN] reason
Click to show internal directories.
Click to hide internal directories.