{"id":65387,"library":"denormal-go-gitignore","title":"Go Gitignore","description":"Package gitignore provides an interface for parsing .gitignore files and matching paths against the retrieved patterns using fnmatch as specified by git.","status":"active","version":"0.0.0-20180930084346-ae8ad1d07817","language":"go","source_language":null,"source_url":"https://github.com/denormal/go-gitignore","tags":["gitignore","file-matching","fnmatch","path-matching","utility"],"install":[{"cmd":"go get github.com/denormal/go-gitignore","lang":"bash","label":"Install github.com/denormal/go-gitignore"}],"dependencies":[],"imports":[{"symbol":"gitignore","correct":"github.com/denormal/go-gitignore"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/denormal/go-gitignore\"\n)\n\nfunc main() {\n\tgi, _ := gitignore.NewFromFile(\".gitignore\")\n\tfmt.Println(gi.Match(\"some/file.go\"))\n}","lang":"go","description":"Parses a .gitignore file and checks if a path is ignored."},"warnings":[],"env_vars":null,"search_vec":"'file':11,27 'file-match':26 'fnmatch':20,29 'git':24 'gitignor':2,4,10,25 'go':1 'interfac':7 'match':13,28,32 'packag':3 'pars':9 'path':14,31 'path-match':30 'pattern':18 'provid':5 'retriev':17 'specifi':22 'use':19 'util':33","created_at":"2026-06-17T17:09:42.370266+00:00","updated_at":"2026-06-17T17:09:42.370266+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/denormal/go-gitignore","github":"https://github.com/denormal/go-gitignore","docs":"https://pkg.go.dev/github.com/denormal/go-gitignore#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}