{"id":13809115,"url":"https://github.com/nikgalushko/fx","last_synced_at":"2026-01-16T16:50:08.232Z","repository":{"id":68532075,"uuid":"402509417","full_name":"nikgalushko/fx","owner":"nikgalushko","description":"Fx is a useful functional programming helpers.","archived":false,"fork":false,"pushed_at":"2022-01-09T15:18:11.000Z","size":43,"stargazers_count":79,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-14T05:36:17.366Z","etag":null,"topics":["generics","go","golang","helper","tool"],"latest_commit_sha":null,"homepage":"https://nikgalushko.github.io/fx/","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/nikgalushko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2021-09-02T17:37:32.000Z","updated_at":"2024-12-28T07:15:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea30a916-3274-405d-aac5-133093d450fa","html_url":"https://github.com/nikgalushko/fx","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nikgalushko/fx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikgalushko%2Ffx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikgalushko%2Ffx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikgalushko%2Ffx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikgalushko%2Ffx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikgalushko","download_url":"https://codeload.github.com/nikgalushko/fx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikgalushko%2Ffx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","helper","tool"],"created_at":"2024-08-04T01:02:02.325Z","updated_at":"2026-01-16T16:50:08.175Z","avatar_url":"https://github.com/nikgalushko.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# fx\n[![Status](https://github.com/nikgalushko/fx/actions/workflows/go.yaml/badge.svg)](https://github.com/nikgalushko/fx/actions/workflows/go.yaml) [![Coverage Status](https://coveralls.io/repos/github/nikgalushko/fx/badge.svg?branch=main)](https://coveralls.io/github/nikgalushko/fx?branch=main)\n\n\nFx is a useful functional programming helpers without using `interface{}` or reflect.\n\nSupport **only** Go 1.18+.\n\n## Features\n- Slice\n  - Each\n  - Collect\n  - Reduce\n  - Find\n  - Filter\n  - Every\n  - Some\n  - Contains\n  - Max\n  - Min\n  - GroupBy\n  - Sample\n  - SampleN\n  - Union\n  - Intersection\n  - Uniq\n  - IndexOf\n  - LastIndexOf\n  - Reverse\n- Map\n  - Keys\n  - Values\n  - Each\n  - Filter\n- Channel\n  - Merge\n\n## Documentation\n\nDocumentation with examples can be found here: https://nikgalushko.github.io/fx/\n\n## Installation\n\nslice helpers `go get github.com/nikgalushko/fx/slice`\n\nmap helpers `go get github.com/nikgalushko/fx/kv`\n\nchannel helpers `go get github.com/nikgalushko/fx/ch`\n\n## Usage\n\n```go\nimport (\n  \"fmt\"\n\n  \"github.com/nikgalushko/fx/kv\"\n  \"github.com/nikgalushko/fx/slice\"\n)\n\ntype (\n  ID string\n\n  Attribute struct {\n    Value string\n  }\n)\n\nfunc main() {\n  m := map[ID]Attribute{\n    ID(\"1\"): {Value: \"blah\"},\n    ID(\"1861\"): {Value: \"!\"},\n    ID(\"1234\"): {Value: \"yeah\"},\n  }\n\n  fmt.Println(\"ids\", kv.Keys(m), \"contains special\", slice.Contains(kv.Values(m), Attribute{Value: \"!\"}))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikgalushko%2Ffx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikgalushko%2Ffx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikgalushko%2Ffx/lists"}