sauceignore

package
v0.88.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 6 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 interface {
	Match(path []string, isDir bool) bool
}

Matcher defines matcher for sauceignore patterns.

func NewMatcher

func NewMatcher(ps []Pattern) Matcher

NewMatcher constructs a new matcher.

func NewMatcherFromFile

func NewMatcherFromFile(path string) (Matcher, error)

NewMatcherFromFile constructs a new matcher from file.

type Pattern

type Pattern struct {
	P string
}

Pattern defines a single sauceignore pattern.

func NewPattern

func NewPattern(p string) Pattern

NewPattern create new Pattern.

Jump to

Keyboard shortcuts

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