This commit is contained in:
zhangdeman committed 2023-06-12 19:01:31 +08:00
1 parent 69f504a13d
commit abced6d49d
1 file changed
+2
+2
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())
} }
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.