{"id":20761695,"url":"https://github.com/s0rg/trie","last_synced_at":"2025-04-30T06:25:39.130Z","repository":{"id":54699263,"uuid":"522258503","full_name":"s0rg/trie","owner":"s0rg","description":"Generic prefix tree for golang","archived":false,"fork":false,"pushed_at":"2025-04-25T11:10:00.000Z","size":19,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-25T12:23:04.672Z","etag":null,"topics":["data-structures","golang-library","prefix-tree","trie","trie-structure"],"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/s0rg.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,"zenodo":null}},"created_at":"2022-08-07T16:01:15.000Z","updated_at":"2025-04-25T11:07:56.000Z","dependencies_parsed_at":"2024-03-22T19:29:30.614Z","dependency_job_id":"17aa1e2e-3e9b-4b2f-86ff-a92c7b74e04a","html_url":"https://github.com/s0rg/trie","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s0rg%2Ftrie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s0rg%2Ftrie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s0rg%2Ftrie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s0rg%2Ftrie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s0rg","download_url":"https://codeload.github.com/s0rg/trie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251652930,"owners_count":21622040,"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-library","prefix-tree","trie","trie-structure"],"created_at":"2024-11-17T10:25:20.503Z","updated_at":"2025-04-30T06:25:39.125Z","avatar_url":"https://github.com/s0rg.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PkgGoDev](https://pkg.go.dev/badge/github.com/s0rg/trie)](https://pkg.go.dev/github.com/s0rg/trie)\n[![License](https://img.shields.io/github/license/s0rg/trie)](https://github.com/s0rg/trie/blob/main/LICENSE)\n[![Go Version](https://img.shields.io/github/go-mod/go-version/s0rg/trie)](go.mod)\n[![Tag](https://img.shields.io/github/v/tag/s0rg/trie?sort=semver)](https://github.com/s0rg/trie/tags)\n\n[![CI](https://github.com/s0rg/trie/workflows/ci/badge.svg)](https://github.com/s0rg/trie/actions?query=workflow%3Aci)\n[![Maintainability](https://qlty.sh/badges/be6e541c-b180-457b-9088-300cb5588718/maintainability.svg)](https://qlty.sh/gh/s0rg/projects/trie)\n[![Code Coverage](https://qlty.sh/badges/be6e541c-b180-457b-9088-300cb5588718/test_coverage.svg)](https://qlty.sh/gh/s0rg/projects/trie)\n[![Go Report Card](https://goreportcard.com/badge/github.com/s0rg/trie)](https://goreportcard.com/report/github.com/s0rg/trie)\n\n# trie\n\nGeneric prefix tree for golang\n\n# example\n\n```go\n    import (\n        \"fmt\"\n        \"log\"\n\n        \"github.com/s0rg/trie\"\n    )\n\n    func main() {\n        t := trie.New[int]()\n\n        t.Add(\"bar\", 1)\n        t.Add(\"baz\", 2)\n        t.Add(\"bat\", 3)\n\n        val, ok := t.Find(\"bar\")\n        if !ok {\n            log.Fatal(\"not found\")\n        }\n\n        fmt.Println(val) // will print 1\n    }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs0rg%2Ftrie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs0rg%2Ftrie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs0rg%2Ftrie/lists"}