pathmatcher

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompoundPathMatcher

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

func NewCompoundPathMatcher

func NewCompoundPathMatcher(matchers ...PathMatcher) *CompoundPathMatcher

func (*CompoundPathMatcher) Add

func (c *CompoundPathMatcher) Add(matcher PathMatcher)

func (*CompoundPathMatcher) Match

func (c *CompoundPathMatcher) Match(path string) bool

type GitignorePathMatcher

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

func NewGitignorePathMatcher

func NewGitignorePathMatcher() (*GitignorePathMatcher, error)

func (*GitignorePathMatcher) Any

func (g *GitignorePathMatcher) Any() bool

func (*GitignorePathMatcher) Match

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

type PathMatcher

type PathMatcher interface {
	Match(path string) bool
}

type RegexPathMatcher

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

func NewRegexPathMatcher

func NewRegexPathMatcher(pattern string) (*RegexPathMatcher, error)

func (*RegexPathMatcher) Match

func (r *RegexPathMatcher) Match(path string) bool

Jump to

Keyboard shortcuts

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