ignore

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ignore

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

Ignore is a gitignore-style object to ignore files/directories

func NewIgnore

func NewIgnore(lines []string) *Ignore

NewIgnore produces an Ignore object, with compiled lines from defaultIgnoreFiles which you can match files against

func (*Ignore) Match

func (i *Ignore) Match(f string) bool

Match returns true if the provided file matches any of the defined ignores

Jump to

Keyboard shortcuts

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