{"id":16834648,"url":"https://github.com/gobwas/avl","last_synced_at":"2025-07-29T12:11:48.485Z","repository":{"id":57597171,"uuid":"374452766","full_name":"gobwas/avl","owner":"gobwas","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-11T12:18:01.000Z","size":17,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T04:35:09.073Z","etag":null,"topics":[],"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/gobwas.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":"2021-06-06T20:01:50.000Z","updated_at":"2023-12-23T16:19:53.000Z","dependencies_parsed_at":"2022-08-25T00:22:03.958Z","dependency_job_id":null,"html_url":"https://github.com/gobwas/avl","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gobwas/avl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobwas%2Favl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobwas%2Favl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobwas%2Favl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobwas%2Favl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gobwas","download_url":"https://codeload.github.com/gobwas/avl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobwas%2Favl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267685002,"owners_count":24127703,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-13T12:07:14.216Z","updated_at":"2025-07-29T12:11:48.456Z","avatar_url":"https://github.com/gobwas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# avl\n\n[![GoDoc][godoc-image]][godoc-url]\n[![CI][ci-badge]][ci-url]\n\n\u003e AVL (Adelson-Velsky and Landis) immutable tree implementation.\n\n# Overview\n\nThis is an *immutable* implementation of the balanced binary search tree.\nIts goal is to be as simple as possible in terms of API as well as correct and generic.\n\n# Installation\n\n```bash\ngo get github.com/gobwas/avl\n```\n\n# Documentation\n\nYou can read the docs at [GoDoc][godoc-url].\n\n# Usage\n\n```go\npackage main\n\nimport (\n\t\"strings\"\n\n\t\"github.com/gobwas/avl\"\n)\n\nfunc main() {\n\tvar tree avl.Tree\n\ttree, _ = tree.Insert(StringItem(\"foo\"))\n\ttree, _ = tree.Delete(StringItem(\"foo\"))\n\tif tree.Search(StringItem(\"foo\")) != nil {\n\t\t// whoa!\n\t}\n}\n\ntype StringItem string\n\nfunc (s StringItem) Compare(x Item) int {\n\treturn strings.Compare(string(s), string(x.(StringItem)))\n}\n```\n\n\n[godoc-image]: https://godoc.org/github.com/gobwas/avl?status.svg\n[godoc-url]:   https://godoc.org/github.com/gobwas/avl\n[ci-badge]:    https://github.com/gobwas/avl/actions/workflows/main.yml/badge.svg?branch=main\n[ci-url]:      https://github.com/gobwas/avl/actions/workflows/main.yml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgobwas%2Favl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgobwas%2Favl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgobwas%2Favl/lists"}