This commit is contained in:
白茶清欢 2023-06-12 19:09:28 +08:00
parent abced6d49d
commit e11c833562

View File

@ -9,6 +9,7 @@ package wrapper
import ( import (
"fmt" "fmt"
"reflect"
"testing" "testing"
) )
@ -18,4 +19,9 @@ func TestArray(t *testing.T) {
fmt.Println(Array(val).ItemIsInterface()) fmt.Println(Array(val).ItemIsInterface())
valInt := []int{1, 2, 3, 1, 4, 5, 6, 7, 7, 6, 9} valInt := []int{1, 2, 3, 1, 4, 5, 6, 7, 7, 6, 9}
fmt.Println(Array(valInt).Unique()) fmt.Println(Array(valInt).Unique())
a := map[string]interface{}{"name": "zhang"}
b := a
c := map[string]interface{}{"name": "de"}
fmt.Println(reflect.DeepEqual(b, c))
fmt.Println(reflect.DeepEqual(a, b))
} }