aboutsummaryrefslogtreecommitdiff
path: root/meselog
diff options
context:
space:
mode:
Diffstat (limited to 'meselog')
-rw-r--r--meselog/meselog.go7
1 files changed, 4 insertions, 3 deletions
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)
}