collection icon indicating copy to clipboard operation
collection copied to clipboard

make golang map and slice powerful

Results 5 collection issues
Sort by recently updated
recently updated
newest added

看不了文档啊,好好维护下啊

无法使用uint类型的切片,Collect时直接报错

Is there a way to delete duplicates?

请问有类似php的array_column方法吗,可以提取数组里面的某一个列的值

请问想进行where的条件筛选怎么做 func TestBaseCollection_Where(t *testing.T) { a := []map[string]interface{}{ {"name": "mike", "sex": 0}, {"name": "Mary", "sex": 1}, {"name": "Jane", "sex": 2}, } fmt.Println(Collect(a).Where("sex", 1).ToMapArray()) } 比如想筛选sex大于1的数据