ignore

package
v0.1.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 5 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 = gitignore.Matcher

func NewMatcher

func NewMatcher(ps []Pattern) Matcher

type Pattern

type Pattern = gitignore.Pattern

func ParsePatternFiles

func ParsePatternFiles(root string, gitRelativePaths ...string) (ps []Pattern, err error)

func ReadPatterns

func ReadPatterns(root string, dirs []string, ignoreFileNames ...string) ([]Pattern, error)

ReadPatterns read and parse ignoreFileNames recursively

The result is in the ascending order of priority (last higher).

WARNING: This is too slow in most casts. You can use git to find the ignore files and use ParseIgnoreFiles to parse them.

Jump to

Keyboard shortcuts

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