{"id":18493777,"url":"https://github.com/neurocode-io/go-pkgs","last_synced_at":"2025-10-26T00:43:10.292Z","repository":{"id":65935508,"uuid":"602519718","full_name":"neurocode-io/go-pkgs","owner":"neurocode-io","description":"Opinionated util functions working with go","archived":false,"fork":false,"pushed_at":"2024-08-17T07:21:56.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T23:26:54.457Z","etag":null,"topics":["generic","go","utility","utility-library"],"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/neurocode-io.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-16T11:39:48.000Z","updated_at":"2024-08-17T07:20:18.000Z","dependencies_parsed_at":"2024-12-25T16:26:33.784Z","dependency_job_id":"fc634e5f-9fc6-4378-8e6a-6756781d3252","html_url":"https://github.com/neurocode-io/go-pkgs","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurocode-io%2Fgo-pkgs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurocode-io%2Fgo-pkgs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurocode-io%2Fgo-pkgs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurocode-io%2Fgo-pkgs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neurocode-io","download_url":"https://codeload.github.com/neurocode-io/go-pkgs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254053711,"owners_count":22006764,"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":["generic","go","utility","utility-library"],"created_at":"2024-11-06T13:16:00.650Z","updated_at":"2025-10-26T00:43:10.185Z","avatar_url":"https://github.com/neurocode-io.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-pkgs [![CICD](https://github.com/neurocode-io/go-pkgs/actions/workflows/main.yaml/badge.svg)](https://github.com/neurocode-io/go-pkgs/actions/workflows/main.yaml) ![cod cov](https://pub-822896f0c4d14a8b85304d7a32e484f1.r2.dev/go-pkgs.svg)\n\n\nCollection of Go packages that I use in my projects. Implemented with go generics. Thus they are compatible with Go 1.18+.\n\n## Installation\n\n```bash\ngo get github.com/neurocode-io/go-pkgs@latest\n```\n\n\n## Packages\n\n### slice\n\nSlice is a package that provides a set of functions to work with slices.\n\n### map\n\nMap is a package that provides a set of functions to work with maps.\n\n### set\n\nSet is a package that provides a generic set implementation.\n\n### async\n\n```\ngroup := result.Group[ResultType]{}\n\nctx := context.Background()\nthreshold := 1\n\ngroup, ctx := resultgroup.WithErrorsThreshold[ResultType](ctx, threshold)\n\ngroup.Go(func() ([]ResultType, error) {\n    return []ResultType{}, nil\n})\n\nresults, err := group.Wait()\nif err != nil {\n\t\tfmt.Println(\"Error:\", err)\n    fmt.Println(\"Wrapped errors\", err.Unwrap())\n\t}\n```\n\n### streams\n\nComing soon","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneurocode-io%2Fgo-pkgs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneurocode-io%2Fgo-pkgs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneurocode-io%2Fgo-pkgs/lists"}