Registry / utility / joelanford-ignore

joelanford-ignore

JSON →
library0.1.1gogounverified

Ignore provides a Go implementation of .gitignore-style pattern matching for file exclusion.

go get github.com/joelanford/ignore
INSTALL
IMPORT
SIG · JOELANFORD-IGNORE
J
joelanford-ignore
utilitygov0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ignore
github.com/joelanford/ignore

Compiles a gitignore-style pattern and tests a filename against it.

package main import ( "fmt" "github.com/joelanford/ignore" ) func main() { matcher, err := ignore.Compile("*.log") if err != nil { panic(err) } fmt.Println(matcher.Match("debug.log")) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
joelanford-ignore — go get joelanford-ignore · libregistry