修复自定义Marshal序列化的BUG

This commit is contained in:
2025-01-22 15:55:39 +08:00
parent c00354fe46
commit 10759d9c5e
8 changed files with 48 additions and 29 deletions

19
logger_test.go Normal file
View File

@ -0,0 +1,19 @@
// Package consts ...
//
// Description : consts ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2025-01-22 15:36
package consts
import (
"encoding/json"
"fmt"
"testing"
)
func TestLogLevel_String(t *testing.T) {
byteData, err := json.Marshal(LogLevelDebug)
fmt.Println(string(byteData), err)
}