From 06a8e2b2b11ec2b86f0d9f37940707265b62d017 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 13 Dec 2024 08:13:30 +0800 Subject: Reformat --- meselog/meselog.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'meselog/meselog.go') diff --git a/meselog/meselog.go b/meselog/meselog.go index d9c84f5..402d674 100644 --- a/meselog/meselog.go +++ b/meselog/meselog.go @@ -5,11 +5,11 @@ import ( ) func log(str string, keyvals []any) { - fmt.Print(str+" ") + fmt.Print(str + " ") for i, j := range keyvals { - if i & 1 == 0 { + if i&1 == 0 { fmt.Printf("%v=", j) - } else if i == len(keyvals) - 1 { + } else if i == len(keyvals)-1 { fmt.Printf("%#v", j) } else { fmt.Printf("%#v ", j) @@ -21,6 +21,7 @@ func log(str string, keyvals []any) { func Error(str string, keyvals ...any) { log("ERROR "+str, keyvals) } + func Debug(str string, keyvals ...any) { log("DEBUG "+str, keyvals) } -- cgit v1.2.3