pkg

package
v0.0.0-...-4f5263d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnalyzer

func NewAnalyzer() *analysis.Analyzer

func RunAnalyzer

func RunAnalyzer(pass *analysis.Pass) (interface{}, error)

func SerializeHints

func SerializeHints(hints []*Hint, resultFormat string)

Types

type Hint

type Hint struct {
	Pos        token.Pos
	End        token.Pos
	Category   string
	Message    string
	Suggestion string
}

type MissingLenLinter

type MissingLenLinter struct {
	Hints []*Hint
	// contains filtered or unexported fields
}

func NewMissingLenLinter

func NewMissingLenLinter() *MissingLenLinter

func (*MissingLenLinter) Check

func (l *MissingLenLinter) Check(file *ast.File)

func (*MissingLenLinter) Reset

func (l *MissingLenLinter) Reset()

func (*MissingLenLinter) Visit

func (l *MissingLenLinter) Visit(node ast.Node) ast.Visitor

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL