From 3b15b101e23d8653c8d2d338cbba281d71970b31 Mon Sep 17 00:00:00 2001 From: Geektree0101 Date: Thu, 2 Sep 2021 22:32:17 +0900 Subject: [PATCH] Bold message should be end with all attributes off(\x1b[0m) --- logger/colors/color.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger/colors/color.go b/logger/colors/color.go index 576280e..d23c980 100644 --- a/logger/colors/color.go +++ b/logger/colors/color.go @@ -54,7 +54,7 @@ func NewModeColorWriter(w io.Writer, mode outputMode) io.Writer { } func Bold(message string) string { - return fmt.Sprintf("\x1b[1m%s\x1b[21m", message) + return fmt.Sprintf("\x1b[1m%s\x1b[0m", message) } // Black returns a black string