From bcc10a77c8af3728914ff9415324eb3febd94112 Mon Sep 17 00:00:00 2001 From: Zzhiter <2631992879@qq.com> Date: Wed, 8 May 2024 10:31:43 +0800 Subject: [PATCH] fix: word spelling error --- pkg/log/formatter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/log/formatter.go b/pkg/log/formatter.go index d648fc2..20c2b91 100644 --- a/pkg/log/formatter.go +++ b/pkg/log/formatter.go @@ -20,7 +20,7 @@ import ( "encoding/json" ) -var Jf *JsonFomatter = &JsonFomatter{} +var Jf *JsonFormatter = &JsonFormatter{} var Mf *MapFormatter = &MapFormatter{} func FormatJson(s string) (string, error) { @@ -31,9 +31,9 @@ func FormatMap(m map[string]string) (string, error) { return Mf.Format(m) } -type JsonFomatter struct{} +type JsonFormatter struct{} -func (jf *JsonFomatter) Format(s string) (string, error) { +func (jf *JsonFormatter) Format(s string) (string, error) { var result map[string]interface{} err := json.Unmarshal([]byte(s), &result) if err != nil {