colourise

package
v1.0.11498-2ceb673 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyColour

func ApplyColour(value string) string

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

func ErrorHighlight(s string) string

ErrorHighlight returns the passed string adorned with ANSI escape codes to render the text as a highlighted error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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