1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-17 16:12:42 +08:00
Files
go-mixed/json/jsonconv_test.go
2022-05-06 15:31:57 +08:00

18 lines
318 B
Go

package json_test
import (
"testing"
"github.com/charlienet/go-mixed/json"
)
func TestNameConvert(t *testing.T) {
d := struct {
UserName string
Age int
}{UserName: "测试", Age: 13}
t.Log(json.StructToJsonIndent(json.CamelCase{Value: d}))
t.Log(json.StructToJsonIndent(json.SnakeCase{Value: d}))
}