{"id":20512640,"url":"https://github.com/felix-kaestner/slices","last_synced_at":"2025-04-13T23:08:16.725Z","repository":{"id":59043248,"uuid":"527202391","full_name":"felix-kaestner/slices","owner":"felix-kaestner","description":"The missing map/filter/reduce (+more) for golang.org/x/exp/slices (requires Go v1.18+)","archived":false,"fork":false,"pushed_at":"2024-06-10T00:47:42.000Z","size":45,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-20T15:58:04.957Z","etag":null,"topics":["generics","go","golang","slices"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/felix-kaestner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"felix-kaestner"}},"created_at":"2022-08-21T12:38:41.000Z","updated_at":"2023-02-18T14:51:17.000Z","dependencies_parsed_at":"2023-12-14T20:47:37.915Z","dependency_job_id":"087ef104-118c-48c1-a11d-b0c8986f3bf3","html_url":"https://github.com/felix-kaestner/slices","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":"felix-kaestner/go-library-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felix-kaestner%2Fslices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felix-kaestner%2Fslices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felix-kaestner%2Fslices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felix-kaestner%2Fslices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felix-kaestner","download_url":"https://codeload.github.com/felix-kaestner/slices/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224844636,"owners_count":17379238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["generics","go","golang","slices"],"created_at":"2024-11-15T20:42:13.380Z","updated_at":"2024-11-15T20:42:13.848Z","avatar_url":"https://github.com/felix-kaestner.png","language":"Go","funding_links":["https://github.com/sponsors/felix-kaestner"],"categories":[],"sub_categories":[],"readme":"# Slices\n\n\u003cp align=\"center\"\u003e\n    \u003cspan\u003eThe missing map/filter/reduce (+more) for \u003ca href=\"https://pkg.go.dev/golang.org/x/exp/slices\"\u003egolang.org/x/exp/slices\u003c/a\u003e (requires Go v1.18+).\u003c/span\u003e\n    \u003cbr\u003e\u003cbr\u003e\n    \u003ca href=\"https://github.com/felix-kaestner/slices/issues\"\u003e\n        \u003cimg alt=\"Issues\" src=\"https://img.shields.io/github/issues/felix-kaestner/slices?color=29b6f6\u0026style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/felix-kaestner/slices/stargazers\"\u003e\n        \u003cimg alt=\"Stars\" src=\"https://img.shields.io/github/stars/felix-kaestner/slices?color=29b6f6\u0026style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/felix-kaestner/slices/blob/main/LICENSE\"\u003e\n        \u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/felix-kaestner/slices?color=29b6f6\u0026style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://pkg.go.dev/github.com/felix-kaestner/slices\"\u003e\n        \u003cimg alt=\"Stars\" src=\"https://img.shields.io/badge/go-documentation-blue?color=29b6f6\u0026style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://goreportcard.com/report/github.com/felix-kaestner/slices\"\u003e\n        \u003cimg alt=\"Issues\" src=\"https://goreportcard.com/badge/github.com/felix-kaestner/slices?style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://codecov.io/gh/felix-kaestner/slices\"\u003e\n        \u003cimg src=\"https://img.shields.io/codecov/c/github/felix-kaestner/slices?style=flat-square\u0026token=R3OVLPMFB9\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://twitter.com/kaestner_felix\"\u003e\n        \u003cimg alt=\"Twitter\" src=\"https://img.shields.io/badge/twitter-@kaestner_felix-29b6f6?style=flat-square\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n## Quickstart\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/felix-kaestner/slices\"\n)\n\nfunc main() {\n    // Original slice of integers\n    numbers := []int{1, 2, 3, 4, 5}\n    \t\n    // Filter only numbers greater than 2\n    greaterThanTwo := slices.Filter(s1, func(i int) bool { return i \u003e 2 })\n    \n    fmt.Println(\"Numbers \u003e 2:\", greaterThanTwo)\n    // Prints \"Numbers \u003e 2: []int{3, 4, 5}\"\n}\n```\n\n##  Installation\n\nInstall with the `go get` command:\n\n```\n$ go get -u github.com/felix-kaestner/slices\n```\n\n## Contribute\n\nAll contributions in any form are welcome! 🙌🏻  \nJust use the [Issue](.github/ISSUE_TEMPLATE) and [Pull Request](.github/PULL_REQUEST_TEMPLATE) templates and I'll be happy to review your suggestions. 👍\n\n---\n\nReleased under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelix-kaestner%2Fslices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelix-kaestner%2Fslices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelix-kaestner%2Fslices/lists"}