analyzer

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyExcludePattern = errors.New("pattern for excluding function can't be empty")
)

Functions

func NewAnalyzer

func NewAnalyzer(exclude []string) (*analysis.Analyzer, error)

NewAnalyzer returns a go/analysis-compatible analyzer.

Types

type PatternsList

type PatternsList []*regexp.Regexp

func (PatternsList) MatchesAny

func (l PatternsList) MatchesAny(str string) bool

MatchesAny matches provided string against all regexps in a slice.

Jump to

Keyboard shortcuts

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