ignore

package
v0.14.12 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2016 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

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

func New

func New(withCache bool) *Matcher

func (*Matcher) Hash

func (m *Matcher) Hash() string

func (*Matcher) Load

func (m *Matcher) Load(file string) error

func (*Matcher) Match

func (m *Matcher) Match(file string) (result Result)

func (*Matcher) Parse

func (m *Matcher) Parse(r io.Reader, file string) error

func (*Matcher) Patterns

func (m *Matcher) Patterns() []string

Patterns return a list of the loaded patterns, as they've been parsed

func (*Matcher) Stop

func (m *Matcher) Stop()

type Pattern

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

func (Pattern) String

func (p Pattern) String() string

type Result added in v0.13.0

type Result uint8

func (Result) IsCaseFolded added in v0.13.0

func (r Result) IsCaseFolded() bool

func (Result) IsDeletable added in v0.13.0

func (r Result) IsDeletable() bool

func (Result) IsIgnored added in v0.13.0

func (r Result) IsIgnored() bool

Jump to

Keyboard shortcuts

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