filepathfilter

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

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

func New

func New(include, exclude []string) *Filter

func NewFromPatterns

func NewFromPatterns(include, exclude []Pattern) *Filter

func (*Filter) Allows

func (f *Filter) Allows(filename string) bool

type Pattern

type Pattern interface {
	Match(filename string) bool
}

func NewPattern

func NewPattern(rawpattern string) Pattern

Jump to

Keyboard shortcuts

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