{"id":37162170,"url":"https://github.com/transcelestial/chanpiper","last_synced_at":"2026-01-14T19:17:54.098Z","repository":{"id":57661874,"uuid":"477058327","full_name":"transcelestial/chanpiper","owner":"transcelestial","description":"A simple interface that implements *-to-many data flow using channels.","archived":false,"fork":false,"pushed_at":"2022-04-03T11:13:51.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-21T12:03:09.319Z","etag":null,"topics":["channels","go","golang","pubsub"],"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/transcelestial.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}},"created_at":"2022-04-02T13:11:04.000Z","updated_at":"2022-04-03T06:40:54.000Z","dependencies_parsed_at":"2022-09-12T21:50:37.405Z","dependency_job_id":null,"html_url":"https://github.com/transcelestial/chanpiper","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/transcelestial/chanpiper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transcelestial%2Fchanpiper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transcelestial%2Fchanpiper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transcelestial%2Fchanpiper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transcelestial%2Fchanpiper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/transcelestial","download_url":"https://codeload.github.com/transcelestial/chanpiper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transcelestial%2Fchanpiper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28432182,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["channels","go","golang","pubsub"],"created_at":"2026-01-14T19:17:53.521Z","updated_at":"2026-01-14T19:17:54.085Z","avatar_url":"https://github.com/transcelestial.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chanpiper\n\u003e A simple interface that implements *-to-many data flow using channels in Go.\n\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/transcelestial/chanpiper/Test?label=test\u0026style=flat-square)](https://github.com/transcelestial/chanpiper/actions?query=workflow%3ATest)\n\n## Usage\nTo use `chanpiper` w/o [generics](https://go.dev/doc/tutorial/generics):\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/transcelestial/chanpiper\"\n)\n\nfunc main() {\n    source := make(chan chanpiper.Data)\n    piper := chanpiper.New(source)\n\n    p1 := piper.Pipe()\n    p2 := piper.Pipe()\n\n    go func() {\n        for data := range p1 {\n            fmt.Println(data.V)\n        }\n    }()\n\n    go func() {\n        for data := range p2 {\n            fmt.Println(data.V)\n        }\n    }()\n\n    source \u003c- chanpiper.Data{\"ping\"}\n    close(source)\n}\n```\nSee the [example](./example_chanpiper_test.go) for a working example.\n\nTo use `chanpiper/v2` w/ [generics](https://go.dev/doc/tutorial/generics):\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/transcelestial/chanpiper/v2\"\n)\n\nfunc main() {\n    source := make(chan string)\n    piper := chanpiper.New(source)\n\n    p1 := piper.Pipe()\n    p2 := piper.Pipe()\n\n    go func() {\n        for data := range p1 {\n            fmt.Println(data.V)\n        }\n    }()\n\n    go func() {\n        for data := range p2 {\n            fmt.Println(data.V)\n        }\n    }()\n\n    source \u003c- \"ping\"\n    close(source)\n}\n```\nSee the [example](./v2/example_chanpiper_test.go) for a working example.\n\n## Contribute\nIf you wish to contribute, please use the following guidelines:\n* Use [conventional commits](https://conventionalcommits.org/)\n* Use [effective Go](https://golang.org/doc/effective_go)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftranscelestial%2Fchanpiper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftranscelestial%2Fchanpiper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftranscelestial%2Fchanpiper/lists"}