{"id":13413957,"url":"https://github.com/aerogo/codetree","last_synced_at":"2025-04-10T20:55:19.895Z","repository":{"id":57480607,"uuid":"74800767","full_name":"aerogo/codetree","owner":"aerogo","description":":evergreen_tree: Parses indented code and returns a tree structure.","archived":false,"fork":false,"pushed_at":"2019-10-26T04:19:45.000Z","size":48,"stargazers_count":24,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T21:05:48.925Z","etag":null,"topics":["go","parser"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aerogo.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":"2016-11-26T02:50:38.000Z","updated_at":"2024-04-20T18:36:20.000Z","dependencies_parsed_at":"2022-09-26T17:41:41.555Z","dependency_job_id":null,"html_url":"https://github.com/aerogo/codetree","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerogo%2Fcodetree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerogo%2Fcodetree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerogo%2Fcodetree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerogo%2Fcodetree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aerogo","download_url":"https://codeload.github.com/aerogo/codetree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248261959,"owners_count":21074229,"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":["go","parser"],"created_at":"2024-07-30T20:01:53.659Z","updated_at":"2025-04-10T20:55:19.876Z","avatar_url":"https://github.com/aerogo.png","language":"Go","readme":"# codetree\n\n[![Godoc][godoc-image]][godoc-url]\n[![Report][report-image]][report-url]\n[![Tests][tests-image]][tests-url]\n[![Coverage][coverage-image]][coverage-url]\n[![Sponsor][sponsor-image]][sponsor-url]\n\nParses indented code (Python, Pug, Stylus, Pixy, codetree, etc.) and returns a tree structure.\n\n## Installation\n\n```bash\ngo get github.com/aerogo/codetree\n```\n\n## Usage\n\n```go\ntree, err := codetree.New(reader)\ndefer tree.Close()\n```\n\n## Input\n\n```\nparent1\n\tchild1\n\tchild2\n\tchild3\n\t\tchild3.1\n\t\tchild3.2\n\tchild4\n\nparent2\n\tchild1\n```\n\n## Output\n\nSee [CodeTree](https://github.com/aerogo/codetree/blob/master/CodeTree.go#L23-L32) structure.\n\nThe root node always starts with `Indent` being `-1`.\n\n## Style\n\nPlease take a look at the [style guidelines](https://github.com/akyoto/quality/blob/master/STYLE.md) if you'd like to make a pull request.\n\n## Sponsors\n\n| [![Cedric Fung](https://avatars3.githubusercontent.com/u/2269238?s=70\u0026v=4)](https://github.com/cedricfung) | [![Scott Rayapoullé](https://avatars3.githubusercontent.com/u/11772084?s=70\u0026v=4)](https://github.com/soulcramer) | [![Eduard Urbach](https://avatars3.githubusercontent.com/u/438936?s=70\u0026v=4)](https://twitter.com/eduardurbach) |\n| --- | --- | --- |\n| [Cedric Fung](https://github.com/cedricfung) | [Scott Rayapoullé](https://github.com/soulcramer) | [Eduard Urbach](https://eduardurbach.com) |\n\nWant to see [your own name here?](https://github.com/users/akyoto/sponsorship)\n\n[godoc-image]: https://godoc.org/github.com/aerogo/codetree?status.svg\n[godoc-url]: https://godoc.org/github.com/aerogo/codetree\n[report-image]: https://goreportcard.com/badge/github.com/aerogo/codetree\n[report-url]: https://goreportcard.com/report/github.com/aerogo/codetree\n[tests-image]: https://cloud.drone.io/api/badges/aerogo/codetree/status.svg\n[tests-url]: https://cloud.drone.io/aerogo/codetree\n[coverage-image]: https://codecov.io/gh/aerogo/codetree/graph/badge.svg\n[coverage-url]: https://codecov.io/gh/aerogo/codetree\n[sponsor-image]: https://img.shields.io/badge/github-donate-green.svg\n[sponsor-url]: https://github.com/users/akyoto/sponsorship\n","funding_links":[],"categories":["Template Engines","Text Processing","文本处理","文本处理`解析和操作文本的代码库`","Bot Building","Specific Formats"],"sub_categories":["Parsers/Encoders/Decoders","HTTP Clients","查询语","解析 器/Encoders/Decoders"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faerogo%2Fcodetree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faerogo%2Fcodetree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faerogo%2Fcodetree/lists"}