tree

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTreePrefix

func BuildTreePrefix(depth int, ancestorIsLast []bool) string

BuildTreePrefix generates tree connector prefix for hierarchical display depth: the depth level of the current item (0 for top-level) ancestorIsLast: slice indicating whether each ancestor level is the last child Returns a string with appropriate tree connectors (│, ├─, └─) and spacing

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL