Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Regex ¶
Regex returns a line filter that matches lines against the given pattern. If invert is true, non-matching lines are kept instead.
func Truncate ¶
Truncate applies smart truncation to a list of lines:
- Merges consecutive duplicate lines into "(repeated N times)" markers.
- If lines exceed maxLines, keeps head and tail with an omission notice in between.
- Tail-biased: 80% of the budget goes to the tail where errors typically appear.
maxLines <= 0 means no truncation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.