Skip to content

Commit

Permalink
fix: word spelling error
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzhiter committed May 8, 2024
1 parent f7abf60 commit bcc10a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/log/formatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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 {
Expand Down

0 comments on commit bcc10a7

Please sign in to comment.