{"id":21292109,"url":"https://github.com/aquilax/wordgame","last_synced_at":"2025-03-15T16:40:54.549Z","repository":{"id":141417855,"uuid":"109470610","full_name":"aquilax/wordgame","owner":"aquilax","description":"Word Game search library","archived":false,"fork":false,"pushed_at":"2021-12-12T05:11:10.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T06:30:09.390Z","etag":null,"topics":["game","tool","word-game"],"latest_commit_sha":null,"homepage":null,"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/aquilax.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-04T05:49:42.000Z","updated_at":"2021-12-12T04:48:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"e762d3f6-184a-4442-8f83-301bad4c8f7b","html_url":"https://github.com/aquilax/wordgame","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquilax%2Fwordgame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquilax%2Fwordgame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquilax%2Fwordgame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquilax%2Fwordgame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aquilax","download_url":"https://codeload.github.com/aquilax/wordgame/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243762228,"owners_count":20343972,"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":["game","tool","word-game"],"created_at":"2024-11-21T13:47:38.515Z","updated_at":"2025-03-15T16:40:54.526Z","avatar_url":"https://github.com/aquilax.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wordgame [![GoDoc](https://godoc.org/github.com/aquilax/wordgame?status.svg)](https://godoc.org/github.com/aquilax/wordgame)\n\nPackage wordgame provides a dictionary search for word games.\n\nGiven a dictionary and list of required characteds, the search returns\nlist of matching words which include all the required characters.\n\n## Usage\n\n```go\npackage wordgame_test\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/aquilax/wordgame\"\n)\n\nfunc ExampleWordList_Filter() {\n\twl := wordgame.NewFromStrings([]string{\n\t\t\"cow\",\n\t\t\"chicken\",\n\t\t\"horse\",\n\t\t\"brocolly\",\n\t})\n\tresult := wl.Filter(wordgame.GivenWithExtra(\"co\", 0))\n\tfmt.Printf(\"%+v\", result)\n\t// Output: [cow brocolly]\n}\n\nfunc ExampleWordList_Filter_Len() {\n\twl := wordgame.NewFromStrings([]string{\n\t\t\"cow\",\n\t\t\"chicken\",\n\t\t\"horse\",\n\t\t\"brocolly\",\n\t\t\"coworker\",\n\t\t\"comb\",\n\t})\n\tresult := wl.Filter(wordgame.GivenWithExtra(\"co\", 4))\n\tfmt.Printf(\"%+v\", result)\n\t// Output: [comb]\n}\n\nfunc ExampleWordList_FilterConcurrent() {\n\twl := wordgame.NewFromStrings([]string{\n\t\t\"cow\",\n\t\t\"chicken\",\n\t\t\"horse\",\n\t\t\"brocolly\",\n\t})\n\tresult := wl.FilterConcurrent(wordgame.GivenWithExtra(\"co\", 0), 2)\n\tfmt.Printf(\"%+v\", result)\n\t// Output: [cow brocolly]\n}\n\nfunc ExampleWordList_FilterConcurrent_OnlyGiven() {\n\twl := wordgame.NewFromStrings([]string{\n\t\t\"cow\",\n\t\t\"chicken\",\n\t\t\"horse\",\n\t\t\"brocolly\",\n\t})\n\tresult := wl.FilterConcurrent(wordgame.OnlyGiven(\"cowz\", 0), 2)\n\tfmt.Printf(\"%+v\", result)\n\t// Output: [cow]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faquilax%2Fwordgame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faquilax%2Fwordgame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faquilax%2Fwordgame/lists"}