mirror of
https://github.com/xxjwxc/public.git
synced 2025-09-26 20:01:19 +08:00
21 lines
273 B
Go
21 lines
273 B
Go
package message
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
type Test struct {
|
|
State bool `json:"state"`
|
|
Code int `json:"code"`
|
|
Error string `json:"error"`
|
|
}
|
|
|
|
func Test_sing(t *testing.T) {
|
|
var test Test
|
|
test.State = true
|
|
test.Error = ""
|
|
|
|
fmt.Println(onCheckParam(test))
|
|
}
|