{"id":15404571,"url":"https://github.com/k1low/concgroup","last_synced_at":"2026-02-24T02:02:59.593Z","repository":{"id":142257677,"uuid":"612250898","full_name":"k1LoW/concgroup","owner":"k1LoW","description":"concgroup provides almost the same features to goroutine groups as golang.org/x/sync/errgroup but ensures sequential run of goroutines with the same group key.","archived":false,"fork":false,"pushed_at":"2025-07-14T00:37:55.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-14T02:54:01.638Z","etag":null,"topics":["concurrency","errgroup","go"],"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/k1LoW.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null},"funding":{"github":"k1LoW","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-03-10T14:23:22.000Z","updated_at":"2025-07-14T00:37:40.000Z","dependencies_parsed_at":"2024-06-20T00:19:30.773Z","dependency_job_id":"45f4a05c-a893-45cf-9b6f-dfce03850f88","html_url":"https://github.com/k1LoW/concgroup","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/k1LoW/concgroup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fconcgroup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fconcgroup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fconcgroup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fconcgroup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k1LoW","download_url":"https://codeload.github.com/k1LoW/concgroup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fconcgroup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270466805,"owners_count":24588793,"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","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["concurrency","errgroup","go"],"created_at":"2024-10-01T16:13:44.404Z","updated_at":"2026-02-24T02:02:54.554Z","avatar_url":"https://github.com/k1LoW.png","language":"Go","funding_links":["https://github.com/sponsors/k1LoW"],"categories":[],"sub_categories":[],"readme":"# concgroup\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/k1LoW/concgroup.svg)](https://pkg.go.dev/github.com/k1LoW/concgroup) [![CI](https://github.com/k1LoW/concgroup/actions/workflows/ci.yml/badge.svg)](https://github.com/k1LoW/concgroup/actions/workflows/ci.yml) ![Coverage](https://raw.githubusercontent.com/k1LoW/octocovs/main/badges/k1LoW/concgroup/coverage.svg) ![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocovs/main/badges/k1LoW/concgroup/ratio.svg) ![Test Execution Time](https://raw.githubusercontent.com/k1LoW/octocovs/main/badges/k1LoW/concgroup/time.svg)\n\n`concgroup` provides almost the same features to goroutine groups as `golang.org/x/sync/errgroup` but ensures sequential run of goroutines with the same group key.\n\n## Usage\n\n``` go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"time\"\n\n\t\"github.com/k1LoW/concgroup\"\n)\n\nfunc main() {\n\tcg := new(concgroup.Group)\n\tvar urlgroups = map[string][]string{\n\t\t\"go\": {\n\t\t\t\"https://go.dev/\",\n\t\t\t\"https://go.dev/dl/\",\n\t\t},\n\t\t\"google\": {\n\t\t\t\"http://www.google.com/\",\n\t\t},\n\t}\n\tfor key, ug := range urlgroups {\n\t\tfor _, url := range ug {\n\t\t\turl := url // https://golang.org/doc/faq#closures_and_goroutines\n\t\t\tcg.Go(key, func() error {\n\t\t\t\t// Fetch URL sequentially by key\n\t\t\t\tresp, err := http.Get(url)\n\t\t\t\tif err == nil {\n\t\t\t\t\tresp.Body.Close()\n\t\t\t\t}\n\t\t\t\treturn err\n\t\t\t})\n\t\t}\n\t}\n\t// Wait for all HTTP fetches to complete.\n\tif err := cg.Wait(); err == nil {\n\t\tfmt.Println(\"Successfully fetched all URLs.\")\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fconcgroup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk1low%2Fconcgroup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fconcgroup/lists"}