refactor: log params and channel params

refactor: log params and channel params
This commit is contained in:
Xiangyuan-liu committed 2025-07-07 14:26:37 +08:00
1 parent 46ebea917e
commit db98c0f4b1
27 files changed
+314 -173

No files matched your search

+8
View File
@@ -73,3 +73,11 @@ func StringToByteSlice(s string) []byte {
func EncodeBase64(str string) string {
return base64.StdEncoding.EncodeToString([]byte(str))
}
func GetJsonString(data any) string {
if data == nil {
return ""
}
b, _ := json.Marshal(data)
return string(b)
}