{"id":24769099,"url":"https://github.com/parinpan/pipe","last_synced_at":"2026-03-09T22:03:02.502Z","repository":{"id":57565675,"uuid":"338307795","full_name":"parinpan/pipe","owner":"parinpan","description":"Pipe is a clone of Clojure's Threading Macros concept.","archived":false,"fork":false,"pushed_at":"2021-02-23T02:40:19.000Z","size":20,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T19:31:47.645Z","etag":null,"topics":["clojure","go-library","golang","macros","syntactic-sugar"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parinpan.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":"2021-02-12T12:06:16.000Z","updated_at":"2024-09-19T13:44:08.000Z","dependencies_parsed_at":"2022-09-03T11:21:17.891Z","dependency_job_id":null,"html_url":"https://github.com/parinpan/pipe","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/parinpan/pipe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parinpan%2Fpipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parinpan%2Fpipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parinpan%2Fpipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parinpan%2Fpipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parinpan","download_url":"https://codeload.github.com/parinpan/pipe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parinpan%2Fpipe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30314404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"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":["clojure","go-library","golang","macros","syntactic-sugar"],"created_at":"2025-01-29T02:47:17.394Z","updated_at":"2026-03-09T22:03:02.485Z","avatar_url":"https://github.com/parinpan.png","language":"Go","readme":"\u003cp align=\"center\"\u003e \n\t\u003cimg src=\"https://user-images.githubusercontent.com/14908455/107840608-caf6a700-6de6-11eb-813d-24dbc1e63981.png\" width=\"150\"/\u003e\n\u003c/p\u003e\n\nPipe is a clone of Clojure's Threading Macros concept. It offers simplicity to construct a series of function executions in a syntactic sugar way.\n\n## Installation\n```\ngo get -u github.com/parinpan/pipe\n```\n\n## Usage\nSee the full example here: https://github.com/parinpan/pipe/blob/master/example/pipe_implementation.go\n```golang\nresult := pipe.Do(\n  pipe.Apply(funcA),\n  pipe.Apply(funcB),\n  pipe.Apply(funcC),\n  pipe.Apply(funcD),\n)\n\nfmt.Printf(\"%+v\\n\", result)\n\n// more advanced usage\n\nresult := pipe.Do(\n  pipe.Apply(getRestaurants),\n  pipe.Apply(getFoodsWithFilter, 10, pipe.Pass(), 5),\n  pipe.Apply(getFoodPrices),\n  pipe.Apply(getFoodTotalPriceText, pipe.Pass(func(prices []int) int {\n    var totalPrice = 0\n\n    for _, price := range prices {\n      totalPrice += price\n    }\n\n    return totalPrice\n  })))\n\nfmt.Printf(\"%+v\\n\", result)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparinpan%2Fpipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparinpan%2Fpipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparinpan%2Fpipe/lists"}