{"id":72937,"library":"jianfengye-collection","title":"Collection","description":"Provides generic collection utilities for Go, including filtering, mapping, and sorting.","status":"active","version":"1.4.2","language":"go","source_language":null,"source_url":"https://github.com/jianfengye/collection","tags":["collection","utility","generic"],"install":[{"cmd":"go get github.com/jianfengye/collection","lang":"bash","label":"Install github.com/jianfengye/collection"}],"dependencies":[],"imports":[{"symbol":"collection","correct":"github.com/jianfengye/collection"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/jianfengye/collection\"\n)\n\nfunc main() {\n\tcol := collection.NewIntCollection([]int{1, 2, 3})\n\tcol.Filter(func(i int) bool { return i > 1 })\n\tfmt.Println(col.ToSlice())\n}","lang":"go","description":"Creates an integer collection, filters elements greater than 1, and prints the result."},"warnings":[],"env_vars":null,"search_vec":"'collect':1,4,13 'filter':9 'generic':3,15 'go':7 'includ':8 'map':10 'provid':2 'sort':12 'util':5,14","created_at":"2026-06-17T18:45:21.168326+00:00","updated_at":"2026-06-17T18:45:21.168326+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/jianfengye/collection","github":"https://github.com/jianfengye/collection","docs":"https://pkg.go.dev/github.com/jianfengye/collection#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}