Documentation
¶
Index ¶
- func BuildTreePrefix(prefix string, isLast bool) string
- func CalculateChildPrefix(parentPrefix string, parentIsLast bool, parentEndsWithVertical bool) (string, bool)
- func RenderEntries(entries []*models.LogEntryView, ...)
- func RenderEntriesString(entries []*models.LogEntryView) string
- func RenderItem(entry *models.LogEntryView, showID bool, renderStrikeThrough bool) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTreePrefix ¶
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.
Click to show internal directories.
Click to hide internal directories.