Registry / utility / denormal-go-gitignore

denormal-go-gitignore

JSON →
library0.0.0-20180930084346-ae8ad1d07817gogounverified

Package gitignore provides an interface for parsing .gitignore files and matching paths against the retrieved patterns using fnmatch as specified by git.

go get github.com/denormal/go-gitignore
INSTALL
IMPORT
SIG · DENORMAL-GO-GITIGN
D
denormal-go-gitignore
utilitygov0.0.0-20180930084346-ae8ad1d07817
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.

gitignore
github.com/denormal/go-gitignore

Parses a .gitignore file and checks if a path is ignored.

package main import ( "fmt" "github.com/denormal/go-gitignore" ) func main() { gi, _ := gitignore.NewFromFile(".gitignore") fmt.Println(gi.Match("some/file.go")) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20180930084346-ae8ad1d07817latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
denormal-go-gitignore — go get denormal-go-gitignore · libregistry