exclude

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPattern = errors.New("invalid exclude pattern")
)

Functions

This section is empty.

Types

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

func New

func New(rules []string, sourceRoot string) (*Matcher, error)

func (*Matcher) Match

func (m *Matcher) Match(filePath string) bool

func (*Matcher) MatchRule

func (m *Matcher) MatchRule(filePath string) (bool, string)

Jump to

Keyboard shortcuts

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