Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prettifier ¶
func DefaultPrettifier ¶
func DefaultPrettifier() *Prettifier
DefaultPrettifier creates a default Prettifier.
func (*Prettifier) Prettify ¶
func (p *Prettifier) Prettify(line, pattern string) string
Prettify shortens the line and colors the pattern occurrences.
func (*Prettifier) Shorten ¶
func (p *Prettifier) Shorten(line, pattern string) string
Shorten shortens the provided line to make it human readable. It respects the provided pattern in a sense that the pattern will be always present in the result.
Click to show internal directories.
Click to hide internal directories.