validator/run_test.go

24 lines
402 B
Go
Raw Normal View History

2024-04-29 17:29:46 +08:00
// 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))
}