增加部分数据验证转化逻辑

This commit is contained in:
2024-04-29 17:29:46 +08:00
parent 7454036bf5
commit 6f5aad9607
6 changed files with 444 additions and 122 deletions

23
run_test.go Normal file
View File

@ -0,0 +1,23 @@
// Package validator ...
//
// Description : validator ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2024-04-29 14:14
package validator
import (
"encoding/json"
"fmt"
"testing"
)
func TestRun(t *testing.T) {
sourceData := map[string]interface{}{
"name": "白茶清欢",
}
_ = Run(sourceData, nil)
byteData, _ := json.Marshal(sourceData)
fmt.Println(string(byteData))
}