{"id":36965351,"url":"https://github.com/marcuwynu23/treego","last_synced_at":"2026-01-13T19:57:59.440Z","repository":{"id":326309135,"uuid":"1105010764","full_name":"marcuwynu23/treego","owner":"marcuwynu23","description":"TreeGo is a cli tool for printing directory structures and searching files.","archived":false,"fork":false,"pushed_at":"2025-12-16T06:00:48.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-18T02:00:53.423Z","etag":null,"topics":["dfs-algorithm","file-structure-ascii-tree","golang","tree","tree-structure"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcuwynu23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-27T02:28:35.000Z","updated_at":"2025-12-16T05:58:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/marcuwynu23/treego","commit_stats":null,"previous_names":["marcuwynu23/treego"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/marcuwynu23/treego","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuwynu23%2Ftreego","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuwynu23%2Ftreego/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuwynu23%2Ftreego/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuwynu23%2Ftreego/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcuwynu23","download_url":"https://codeload.github.com/marcuwynu23/treego/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuwynu23%2Ftreego/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28398533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dfs-algorithm","file-structure-ascii-tree","golang","tree","tree-structure"],"created_at":"2026-01-13T19:57:58.890Z","updated_at":"2026-01-13T19:57:59.431Z","avatar_url":"https://github.com/marcuwynu23.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e TreeGo\n \u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/stars/marcuwynu23/treego.svg\" alt=\"Stars Badge\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/forks/marcuwynu23/treego.svg\" alt=\"Forks Badge\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/issues/marcuwynu23/treego.svg\" alt=\"Issues Badge\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/marcuwynu23/treego.svg\" alt=\"License Badge\"/\u003e\n\u003c/p\u003e\n\nTreeGo is a fast, concurrent, and safe directory tree printer and file search tool written in Go. It allows you to print the directory structure, search for files, and filter results using regex patterns or directories-only mode.\n\n---\n\n## Features\n\n- Print a visual directory tree.\n- Search for files and directories by name.\n- Filter files and directories using regex.\n- Option to display directories only.\n- Safe concurrent traversal with automatic error handling.\n- Exits immediately if an error or deadlock is detected.\n\n---\n\n## Installation\n\n1. Ensure you have [Go](https://golang.org/dl/) installed (1.20+ recommended).\n2. Clone the repository:\n\n```bash\ngit clone https://github.com/marcuwynu23/treego.git\ncd treego\n```\n\n3. Build the binary:\n\n```bash\ngo build -o treego main.go\n```\n\n4. Run the tool:\n\n```bash\n./treego \u003cpath\u003e [--search \u003cquery\u003e] [--regex \u003cpattern\u003e] [--dirs-only]\n```\n\n---\n\n## Usage\n\n```text\ntreego \u003cpath\u003e [--search \u003cquery\u003e] [--regex \u003cpattern\u003e] [--dirs-only] [--version]\n```\n\n### Flags\n\n- `--search`, `-s` : Search string. Prints full path of matching files.\n- `--regex`, `-r` : Regex filter to match file or directory names.\n- `--dirs-only`, `-d` : Show only directories.\n- `--version` : Show TreeGo version.\n\n### Examples\n\nPrint the tree of a folder:\n\n```bash\ntreego /path/to/project\n```\n\nSearch for files containing `main`:\n\n```bash\ntreego /path/to/project --search main\n```\n\nShow directories only:\n\n```bash\ntreego /path/to/project --dirs-only\n```\n\nUse regex to filter names:\n\n```bash\ntreego /path/to/project --regex \"\\.go$\"\n```\n\n---\n\n## Safety Features\n\n- Uses a global abort channel to exit immediately on errors.\n- Prevents deadlocks when traversing large directories.\n- Concurrent processing of directories for faster traversal.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcuwynu23%2Ftreego","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcuwynu23%2Ftreego","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcuwynu23%2Ftreego/lists"}