mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-05 01:20:26 +08:00
18 lines
293 B
Go
18 lines
293 B
Go
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
|
|
|
package jsonutils
|
|
|
|
import (
|
|
"encoding/json"
|
|
"testing"
|
|
)
|
|
|
|
func PrintT(obj interface{}, t *testing.T) {
|
|
data, err := json.MarshalIndent(obj, "", " ")
|
|
if err != nil {
|
|
t.Log(err)
|
|
} else {
|
|
t.Log(string(data))
|
|
}
|
|
}
|