{"repo":"ddddddO/gtree","free":true,"listed":false,"github":"https://github.com/ddddddO/gtree","clone":"git clone https://github.com/ddddddO/gtree.git","description":"Easily output ASCII tree from Go program or Markdown unordered list . There's also CLI tool that can output tree from JSON, YAML, or TOML! It's called *xtree*.","language":"Go","stars":358,"topics":["tree","markdown","tree-structure","directory","wasm","cli","golang","trees","go-package","go"],"license":"BSD-2-Clause","category":"cli-tools","readme_excerpt":"[^1] Easily output ASCII tree from Go program or Markdown unordered list (and it does more than just output tree!🌳🗂🔍) There's also a CLI tool that can output a tree from JSON, YAML, or TOML! It's called xtree . Table of Contents - Features - Package - Programmable tree structure - Recommended for developers!👍 - Acknowledgments - Package - Markdown to tree structure - Web - Generate ASCII tree from unordered Markdown list in Web UI (with editable branches). - CLI - gtree - Generate ASCII tree or directory from Markdown unordered list. - CLI - xtree - Generate ASCII tree from JSON/YAML/TOML. - Documents - Process - Performance - Contributing - Test coverage Package - Programmable tree structure [!NOTE] There are sample repositories that use gtree package. See here for details. Simple example I urge you to run this program. This package is probably the easiest Go package to output tree. Installation Go version requires 1.24 or later. Usage Function Description Available optional functions -- -- -- OutputFromRoot can output tree WithMidBranch WithLastBranch WithVLine WithHLine WithEncodeJSON WithEncodeTOML WithEncodeYAML MkdirFromRoot can create directories WithTargetDir WithFileExtensions WithDryRun VerifyFromRoot can output the difference between tree you composed and directories WithTargetDir WithStrictVerify WalkFromRoot can execute user-defined function while traversing tree structure recursively WithMidBranch WithLastBranch WithVLine WithHLine WalkIterFromRoot it return","default_branch":null,"files":null,"tree":[],"storefront":"/r/ddddddO","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ddddddO/gtree/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}