This commit is contained in:
白茶清欢 2023-06-12 19:01:31 +08:00
parent 69f504a13d
commit abced6d49d

View File

@ -16,4 +16,6 @@ func TestArray(t *testing.T) {
val := []interface{}{1, 2, 3} val := []interface{}{1, 2, 3}
fmt.Println(Array(val).IsValid()) fmt.Println(Array(val).IsValid())
fmt.Println(Array(val).ItemIsInterface()) fmt.Println(Array(val).ItemIsInterface())
valInt := []int{1, 2, 3, 1, 4, 5, 6, 7, 7, 6, 9}
fmt.Println(Array(valInt).Unique())
} }