{"id":19865944,"url":"https://github.com/izniburak/pipeline-go","last_synced_at":"2026-01-14T21:21:14.636Z","repository":{"id":194974214,"uuid":"691285716","full_name":"izniburak/pipeline-go","owner":"izniburak","description":"Pipeline pattern for your jobs, tasks, etc.. (Golang)","archived":false,"fork":false,"pushed_at":"2024-06-03T06:14:18.000Z","size":27,"stargazers_count":56,"open_issues_count":0,"forks_count":12,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-02T05:47:04.407Z","etag":null,"topics":["design-patterns","go","golang","pipeline","pipelines"],"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/izniburak.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","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}},"created_at":"2023-09-13T21:49:05.000Z","updated_at":"2024-12-19T10:58:30.000Z","dependencies_parsed_at":"2023-09-16T02:31:42.012Z","dependency_job_id":"c5ee37b3-3c6b-454e-9a8f-99023eb876ec","html_url":"https://github.com/izniburak/pipeline-go","commit_stats":null,"previous_names":["izniburak/pipeline-go"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/izniburak/pipeline-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izniburak%2Fpipeline-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izniburak%2Fpipeline-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izniburak%2Fpipeline-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izniburak%2Fpipeline-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/izniburak","download_url":"https://codeload.github.com/izniburak/pipeline-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izniburak%2Fpipeline-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434796,"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":["design-patterns","go","golang","pipeline","pipelines"],"created_at":"2024-11-12T15:24:36.200Z","updated_at":"2026-01-14T21:21:14.617Z","avatar_url":"https://github.com/izniburak.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# pipeline-go [![](https://github.com/izniburak/pipeline-go/actions/workflows/go.yml/badge.svg)](https://github.com/izniburak/pipeline-go/actions) [![PkgGoDev](https://pkg.go.dev/badge/github.com/izniburak/pipeline-go)](https://pkg.go.dev/github.com/izniburak/pipeline-go)\n\nThis package allows you to use the Pipeline pattern in your processes, and it's built upon the Chain of Responsibility (CoR) design pattern.\n\nCoR is a behavioral design pattern that processes given data through a series of handlers. When a request reaches the pipe class, it processes the data and then forwards it to the next handler. The principle behind this pattern is straightforward.\n\n![pipeline](/.github/static/pipeline.png)\n\n\u003e In summary, the Pipeline is a design pattern tailored for managing sequential modifications to an object. Imagine it as an assembly line: each station represents a pipe, and by the end of the line, you're left with a transformed object.\n\n## Install\n\n```bash\ngo get github.com/izniburak/pipeline-go\n```\n\n## Examples\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"github.com/izniburak/pipeline-go\"\n)\n\ntype UpperCasePipe struct{}\n\nfunc (u *UpperCasePipe) Handle(value pipeline.PipeValue, next pipeline.PipeNext) pipeline.PipeValue {\n\t// get value\n\ttext := value.(string)\n\tcapitalized := strings.ToUpper(text)\n\treturn next(capitalized)\n}\n\ntype TrimSpacePipe struct{}\n\nfunc (t *TrimSpacePipe) Handle(value pipeline.PipeValue, next pipeline.PipeNext) pipeline.PipeValue {\n\t// get value\n\ttext := value.(string)\n\ttrimmed := strings.Trim(text, \" \")\n\treturn next(trimmed)\n}\n\nfunc main() {\n\ttext := \"   buki.dev   \"\n\n\tpipes := []pipeline.PipeInterface{\n\t\tnew(UpperCasePipe),\n\t\tnew(TrimSpacePipe),\n\t}\n\tresult := pipeline.Send(text).Through(pipes).ThenReturn()\n\n\tfmt.Println(result) // BUKI.DEV\n}\n```\n\n## Contributing\n\n1. Fork the repo (https://github.com/izniburak/pipeline-go/fork)\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Contributors\n\n- [izniburak](https://github.com/izniburak) İzni Burak Demirtaş - creator, maintainer\n\n## License\nThe MIT License (MIT) - see [`license.md`](https://github.com/izniburak/pipeline-go/blob/main/license.md) for more details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizniburak%2Fpipeline-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fizniburak%2Fpipeline-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizniburak%2Fpipeline-go/lists"}