24 lines
402 B
Go
24 lines
402 B
Go
|
// 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))
|
||
|
}
|