tree

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTreePrefix

func BuildTreePrefix(prefix string, isLast bool) string

func CalculateChildPrefix added in v0.0.12

func CalculateChildPrefix(parentPrefix string, parentIsLast bool, parentEndsWithVertical bool) (string, bool)

CalculateChildPrefix calculates the prefix for child entries based on parent's prefix and position Returns (prefix, hasVerticalLine)

func RenderEntries added in v0.0.12

func RenderEntries(entries []*models.LogEntryView, callback func(prefix string, connector string, entry *models.LogEntryView))

func RenderEntriesString added in v0.0.12

func RenderEntriesString(entries []*models.LogEntryView) string

func RenderItem added in v0.0.12

func RenderItem(entry *models.LogEntryView, showID bool, renderStrikeThrough bool) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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