{"id":15497534,"url":"https://github.com/bcomnes/flattree","last_synced_at":"2025-04-22T21:44:56.027Z","repository":{"id":57545564,"uuid":"121904107","full_name":"bcomnes/flattree","owner":"bcomnes","description":"🌳 A series of go functions to map a binary tree to a list. ","archived":false,"fork":false,"pushed_at":"2019-05-16T22:55:42.000Z","size":17,"stargazers_count":10,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T19:11:12.491Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/bcomnes/flattree","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/bcomnes.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":"2018-02-18T00:20:30.000Z","updated_at":"2021-11-24T10:41:55.000Z","dependencies_parsed_at":"2022-09-16T23:41:20.765Z","dependency_job_id":null,"html_url":"https://github.com/bcomnes/flattree","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fflattree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fflattree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fflattree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fflattree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcomnes","download_url":"https://codeload.github.com/bcomnes/flattree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250330493,"owners_count":21412988,"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":[],"created_at":"2024-10-02T08:39:31.849Z","updated_at":"2025-04-22T21:44:56.008Z","avatar_url":"https://github.com/bcomnes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌳 flattree\n[![Build Status][travis-img]][travis] [![Go Reportcard][goreport-img]][goreport] [![GoDoc][godoc-img]][godoc]\n\nA series of functions to map a binary tree to a list. A port of [flat-tree][ft] to go. \n\n## Install\n\n```\ngo get github.com/bcomnes/flattree\n```\n\n## Usage\n\nYou can represent a binary tree in a simple flat list using the following structure\n\n```\n      3\n  1       5\n0   2   4   6  ...\n```\n\nSee [Godoc][example] example on godoc.\n\n## API\n\nSee [API][api] example on godoc.\n\n## See also\n\n- [mafintosh/flat-tree][ft]: The node module that this was ported from.\n- [datrs/flat-tree][rs]: A port of the node module to rust.\n- [mafintosh/print-flat-tree][print]: A node cli that can pretty print flat-trees.\n\n[ft]: https://github.com/mafintosh/flat-tree\n[godoc]: https://godoc.org/github.com/bcomnes/flattree\n[godoc-img]: https://godoc.org/github.com/bcomnes/flattree?status.svg\n[travis]: https://travis-ci.org/bcomnes/flattree\n[travis-img]: https://travis-ci.org/bcomnes/flattree.svg?branch=master\n[example]: https://godoc.org/github.com/bcomnes/flattree\n[api]: https://godoc.org/github.com/bcomnes/flattree#pkg-index\n[print]: https://github.com/mafintosh/print-flat-tree\n[rs]: https://github.com/datrs/flat-tree\n[goreport]: https://goreportcard.com/report/github.com/bcomnes/flattree\n[goreport-img]: https://goreportcard.com/badge/github.com/bcomnes/flattree\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcomnes%2Fflattree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcomnes%2Fflattree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcomnes%2Fflattree/lists"}