{"id":36884467,"url":"https://github.com/saracen/matcher","last_synced_at":"2026-01-12T15:28:31.945Z","repository":{"id":57544658,"uuid":"270459015","full_name":"saracen/matcher","owner":"saracen","description":"Matcher is a fast path matcher/globber supporting globstar/doublestar","archived":false,"fork":false,"pushed_at":"2022-07-14T00:55:47.000Z","size":15,"stargazers_count":52,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-24T22:03:02.266Z","etag":null,"topics":["doublestar","glob","globstar","golang","path-matcher","path-matching"],"latest_commit_sha":null,"homepage":"","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/saracen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-07T23:14:36.000Z","updated_at":"2024-10-04T09:44:01.000Z","dependencies_parsed_at":"2022-08-27T04:21:59.053Z","dependency_job_id":null,"html_url":"https://github.com/saracen/matcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saracen/matcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saracen%2Fmatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saracen%2Fmatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saracen%2Fmatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saracen%2Fmatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saracen","download_url":"https://codeload.github.com/saracen/matcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saracen%2Fmatcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["doublestar","glob","globstar","golang","path-matcher","path-matching"],"created_at":"2026-01-12T15:28:30.531Z","updated_at":"2026-01-12T15:28:31.939Z","avatar_url":"https://github.com/saracen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# matcher\n\n`matcher` is similar to `path.Match`, but:\n\n- Supports globstar/doublestar (`**`).\n- Provides a fast `Glob` function.\n- Supports combining matchers.\n\n## Examples\n\n### Match\n\n```golang\npackage main\n\nimport \"github.com/saracen/matcher\"\n\nfunc main() {\n    matched, err := matcher.Match(\"hello/**/world\", \"hello/foo/bar/world\")\n    if err != nil {\n        panic(err)\n    }\n\n    if matched {\n        // do something\n    }\n}\n```\n\n### Glob\n\n```golang\npackage main\n\nimport \"github.com/saracen/matcher\"\n\nfunc main() {\n    matches, err := matcher.Glob(context.Background(), \".\", matcher.New(\"**/*.go\"))\n    if err != nil {\n        panic(err)\n    }\n\n    // do something with the matches\n    _ = matches\n}\n```\n\n### Glob with multiple patterns\n\n```golang\npackage main\n\nimport \"github.com/saracen/matcher\"\n\nfunc main() {\n    matcher := matcher.Multi(\n        matcher.New(\"**/*.go\"),\n        matcher.New(\"**/*.txt\"))\n\n    matches, err := matcher.Glob(context.Background(), \".\", matcher)\n    if err != nil {\n        panic(err)\n    }\n\n    // do something with the matches\n    _ = matches\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaracen%2Fmatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaracen%2Fmatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaracen%2Fmatcher/lists"}