Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyColour ¶
ApplyColour returns the passed string adorned with the ANSI escape sequences to color the text in a random colour that looks good against a black background. Colors are picked with a deterministic hash of the string, meaning colours are consistent for the same string across runs. The string returned terminates with the ANSI escape sequence to reset the colourization.
func ErrorHighlight ¶
ErrorHighlight returns the passed string adorned with ANSI escape codes to render the text as a highlighted error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.