{"id":24314893,"url":"https://github.com/karrick/gotrie","last_synced_at":"2025-07-06T18:13:47.561Z","repository":{"id":137108791,"uuid":"152784513","full_name":"karrick/gotrie","owner":"karrick","description":"Go library that implements a Trie data structure.","archived":false,"fork":false,"pushed_at":"2019-07-23T13:31:13.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T17:40:27.042Z","etag":null,"topics":["data-structures","golang","golang-library"],"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/karrick.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":"2018-10-12T17:18:33.000Z","updated_at":"2019-07-23T13:31:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"145867fd-a52b-495c-9bdd-9d9e015cc1ea","html_url":"https://github.com/karrick/gotrie","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/karrick%2Fgotrie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karrick%2Fgotrie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karrick%2Fgotrie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karrick%2Fgotrie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karrick","download_url":"https://codeload.github.com/karrick/gotrie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242748834,"owners_count":20179090,"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":["data-structures","golang","golang-library"],"created_at":"2025-01-17T10:16:06.491Z","updated_at":"2025-03-09T20:28:56.149Z","avatar_url":"https://github.com/karrick.png","language":"Go","readme":"# gotrie\n\nGo library that implements a Trie data structure.\n\n[![GoDoc](https://godoc.org/github.com/karrick/gotrie?status.svg)](https://godoc.org/github.com/karrick/gotrie)\n\n## Example\n\n```Go\npackage main\n\nimport (\n    \"bufio\"\n    \"fmt\"\n    \"os\"\n\n    \"github.com/karrick/gotrie\"\n)\n\nfunc main() {\n    // build a new Trie from standard input lines\n    t := gotrie.NewPrefixTrie()\n    scanner := bufio.NewScanner(os.Stdin)\n    for scanner.Scan() {\n        t.Insert(scanner.Text(), struct{}{})\n    }\n\n    if err := scanner.Err(); err != nil {\n        fmt.Fprintf(os.Stderr, \"ERROR: %s\\n\", err)\n        os.Exit(1)\n    }\n\n    // Enumerate through Trie in sorted order\n    for t.Scan() {\n        fmt.Println(t.Text())\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarrick%2Fgotrie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarrick%2Fgotrie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarrick%2Fgotrie/lists"}