ignore

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ignoreConf string, ignoreDeletedPath bool) error

Init init default ignore component ignoreConf the config file path of the ignore component ignoreDeletedPath whether ignore the deleted path

func Match

func Match(s string) bool

Match the current string matches the rule or not

func MatchPath

func MatchPath(path, caller, desc string) bool

MatchPath the current string matches the rule or not, if enable the matchIgnoreDeletedPath, check the deleted file rule is matched or not first

Types

type Ignore

type Ignore interface {
	Match(s string) bool
}

Ignore support to check the string matches the ignore rule or not

func New

func New(ignoreFile string) (Ignore, error)

New get a default Ignore instance

Jump to

Keyboard shortcuts

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