17 lines
351 B
Go
17 lines
351 B
Go
// Color utilities to enhance text printed to the screen.
|
|
//
|
|
// See: https://en.wikipedia.org/wiki/ANSI_escape_code
|
|
|
|
package logging
|
|
|
|
func Bold(text string) string {
|
|
return "\033[1m" + text + "\033[0m"
|
|
}
|
|
|
|
func Green(text string) string {
|
|
return "\033[32m" + text + "\033[0m"
|
|
}
|
|
|
|
func Red(text string) string {
|
|
return "\033[31m" + text + "\033[0m"
|
|
}
|