pathmatcher

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitignorePathMatcher added in v0.5.0

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

func NewGitignorePathMatcher

func NewGitignorePathMatcher() (*GitignorePathMatcher, error)

func (*GitignorePathMatcher) Any added in v0.5.0

func (g *GitignorePathMatcher) Any() bool

func (*GitignorePathMatcher) Match added in v0.5.0

func (g *GitignorePathMatcher) Match(path string) bool

type PathMatcher

type PathMatcher interface {
	Match(path string) bool
}

func NewCompoundPathMatcher

func NewCompoundPathMatcher(matchers ...PathMatcher) PathMatcher

func NewRegexPathMatcher

func NewRegexPathMatcher(pattern string) (PathMatcher, error)

Jump to

Keyboard shortcuts

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