{"id":17506284,"url":"https://github.com/zealic/xignore","last_synced_at":"2025-04-23T12:27:05.215Z","repository":{"id":57483569,"uuid":"109174774","full_name":"zealic/xignore","owner":"zealic","description":"A golang package for pattern matching of file paths. Like gitignore, dockerignore chefignore.","archived":false,"fork":false,"pushed_at":"2021-10-08T07:08:07.000Z","size":36,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T23:41:10.456Z","etag":null,"topics":["file-matching","gitignore","golang","ignore","ignorefile"],"latest_commit_sha":null,"homepage":"https://www.zealic.com/projects/xignore","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zealic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-01T19:31:46.000Z","updated_at":"2023-08-16T05:16:49.000Z","dependencies_parsed_at":"2022-08-28T17:01:57.671Z","dependency_job_id":null,"html_url":"https://github.com/zealic/xignore","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zealic%2Fxignore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zealic%2Fxignore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zealic%2Fxignore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zealic%2Fxignore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zealic","download_url":"https://codeload.github.com/zealic/xignore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250432832,"owners_count":21429749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file-matching","gitignore","golang","ignore","ignorefile"],"created_at":"2024-10-20T03:35:36.766Z","updated_at":"2025-04-23T12:27:05.198Z","avatar_url":"https://github.com/zealic.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status][travis-image]][travis-url]\n[![Appveyor Status][appveyor-image]][appveyor-url]\n[![GoDoc][godoc-image]][godoc-url]\n[![GitHub release][release-image]][release-url]\n\n# xignore\n\nA golang package for pattern matching of file paths. Like gitignore, dockerignore chefignore.\n\n\n## Requirements\n\n* Golang ≥ 1.11\n\n\n## Use\n\n```golang\nresult, _ := xignore.DirMatches(\"/workspace/my_project\", \u0026xignore.MatchesOptions{\n\tIgnorefile: \".gitignore\",\n\tNested: true, // Handle nested ignorefile\n})\n\n// ignorefile rules matched files\nfmt.Printf(\"%#v\\n\", result.MatchedFiles)\n// ignorefile rules unmatched files\nfmt.Printf(\"%#v\\n\", result.UnmatchedFiles)\n// ignorefile rules matched dirs\nfmt.Printf(\"%#v\\n\", result.MatchedDirs)\n// ignorefile rules unmatched dirs\nfmt.Printf(\"%#v\\n\", result.UnmatchedDirs)\n```\n\n\n## LICENSE\n[MIT](https://github.com/zealic/xignore/blob/master/LICENSE.txt)\n\n\n## Reference\n\n* https://git-scm.com/docs/gitignore\n* https://github.com/moby/moby/blob/master/pkg/fileutils/fileutils.go\n\n[travis-image]:   https://travis-ci.org/zealic/xignore.svg\n[travis-url]:     https://travis-ci.org/zealic/xignore\n[appveyor-image]: https://ci.appveyor.com/api/projects/status/avl6x1qease9bjic?svg=true\n[appveyor-url]:   https://ci.appveyor.com/project/zealic/xignore\n[godoc-image]:    https://godoc.org/github.com/zealic/xignore?status.svg\n[godoc-url]:      https://godoc.org/github.com/zealic/xignore\n[release-image]:  https://img.shields.io/github/release/zealic/xignore.svg\n[release-url]:    https://github.com/zealic/xignore/releases\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzealic%2Fxignore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzealic%2Fxignore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzealic%2Fxignore/lists"}