From 1f1ec29f7cda68693ac71a7ae0404e554cd5a329 Mon Sep 17 00:00:00 2001 From: velvettear Date: Thu, 2 Nov 2023 12:14:40 +0100 Subject: [PATCH] trim whitespace(s) --- print.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print.go b/print.go index f5037d5..9a29340 100644 --- a/print.go +++ b/print.go @@ -78,7 +78,7 @@ func print(logLevel logLevel, message string, timestamp int64, extras ...string) tmp = strconv.FormatInt(now.UnixMilli()-timestamp, 10) + "ms" } formatted = strings.ReplaceAll(formatted, GetTimediffFormat(), tmp) - fmt.Println(formatted) + fmt.Println(strings.TrimSpace(formatted)) if logLevel.level == FatalLevel.level { os.Exit(1) }