{"id":13413052,"url":"https://github.com/kamildrazkiewicz/go-flow","last_synced_at":"2026-01-14T22:35:55.993Z","repository":{"id":57486544,"uuid":"69170316","full_name":"kamildrazkiewicz/go-flow","owner":"kamildrazkiewicz","description":"Simply way to control goroutines execution order based on dependencies","archived":false,"fork":false,"pushed_at":"2019-05-14T12:10:41.000Z","size":17,"stargazers_count":220,"open_issues_count":1,"forks_count":29,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-10-25T05:22:37.371Z","etag":null,"topics":["concurency","go","goflow","golang","goroutine","goroutine-order"],"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/kamildrazkiewicz.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":"2016-09-25T14:46:09.000Z","updated_at":"2024-08-21T19:57:47.000Z","dependencies_parsed_at":"2022-09-01T22:31:54.133Z","dependency_job_id":null,"html_url":"https://github.com/kamildrazkiewicz/go-flow","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kamildrazkiewicz/go-flow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamildrazkiewicz%2Fgo-flow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamildrazkiewicz%2Fgo-flow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamildrazkiewicz%2Fgo-flow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamildrazkiewicz%2Fgo-flow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamildrazkiewicz","download_url":"https://codeload.github.com/kamildrazkiewicz/go-flow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamildrazkiewicz%2Fgo-flow/sbom","scorecard":{"id":548829,"data":{"date":"2025-08-11","repo":{"name":"github.com/kamildrazkiewicz/go-flow","commit":"2a1d885f8ce4782387c3b427bbb88a33b14e45da"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T10:14:42.503Z","repository_id":57486544,"created_at":"2025-08-20T10:14:42.503Z","updated_at":"2025-08-20T10:14:42.503Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28436601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T21:32:52.117Z","status":"ssl_error","status_checked_at":"2026-01-14T21:32:33.442Z","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":["concurency","go","goflow","golang","goroutine","goroutine-order"],"created_at":"2024-07-30T20:01:32.856Z","updated_at":"2026-01-14T22:35:55.974Z","avatar_url":"https://github.com/kamildrazkiewicz.png","language":"Go","funding_links":[],"categories":["Goroutines","\u003cspan id=\"协程-Coroutines\"\u003e协程 Coroutines\u003c/span\u003e","Goroutines `goroutines的管理和使用`","Relational Databases"],"sub_categories":["Search and Analytic Databases","Advanced Console UIs","检索及分析资料库","SQL 查询语句构建库","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e"],"readme":"# Goflow\n\n[![GoDoc](http://godoc.org/github.com/kamildrazkiewicz/go-flow?status.svg)](http://godoc.org/github.com/kamildrazkiewicz/go-flow) [![License](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://raw.githubusercontent.com/kamildrazkiewicz/go-flow/master/LICENSE) [![Release](https://img.shields.io/github/release/kamildrazkiewicz/go-flow.svg?label=Release)](http://godoc.org/github.com/kamildrazkiewicz/go-flow) [![GoReport](https://goreportcard.com/badge/github.com/kamildrazkiewicz/go-flow)](https://goreportcard.com/report/github.com/kamildrazkiewicz/go-flow) [![Travis](https://travis-ci.org/kamildrazkiewicz/go-flow.svg?branch=master)](https://travis-ci.org/kamildrazkiewicz/go-flow) [![Coverage](http://coveralls.io/repos/github/kamildrazkiewicz/go-flow/badge.svg?branch=master)](https://coveralls.io/github/kamildrazkiewicz/go-flow?branch=master)\n\nGoflow is a simply package to control goroutines execution order based on dependencies. It works similar to ```async.auto``` from [node.js async package](https://github.com/caolan/async), but for Go.\n\n![](http://i.imgur.com/Rej4XAC.png)\n\n## Install\n\nInstall the package with:\n\n```bash\ngo get github.com/kamildrazkiewicz/go-flow\n```\n\nImport it with:\n\n```go\nimport \"github.com/kamildrazkiewicz/go-flow\"\n```\n\nand use `goflow` as the package name inside the code.\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/kamildrazkiewicz/go-flow\"\n\t\"time\"\n)\n\nfunc main() {\n\tf1 := func(r map[string]interface{}) (interface{}, error) {\n\t\tfmt.Println(\"function1 started\")\n\t\ttime.Sleep(time.Millisecond * 1000)\n\t\treturn 1, nil\n\t}\n\n\tf2 := func(r map[string]interface{}) (interface{}, error) {\n\t\ttime.Sleep(time.Millisecond * 1000)\n\t\tfmt.Println(\"function2 started\", r[\"f1\"])\n\t\treturn \"some results\", nil\n\t}\n\n\tf3 := func(r map[string]interface{}) (interface{}, error) {\n\t\tfmt.Println(\"function3 started\", r[\"f1\"])\n\t\treturn nil, nil\n\t}\n\n\tf4 := func(r map[string]interface{}) (interface{}, error) {\n\t\tfmt.Println(\"function4 started\", r)\n\t\treturn nil, nil\n\t}\n\n\tres, err := goflow.New().\n\t\tAdd(\"f1\", nil, f1).\n\t\tAdd(\"f2\", []string{\"f1\"}, f2).\n\t\tAdd(\"f3\", []string{\"f1\"}, f3).\n\t\tAdd(\"f4\", []string{\"f2\", \"f3\"}, f4).\n\t\tDo()\n\n\tfmt.Println(res, err)\n}\n\n\n```\n\nOutput will be:\n```\nfunction1 started\nfunction3 started 1\nfunction2 started 1\nfunction4 started map[f2:some results f3:\u003cnil\u003e]\nmap[f1:1 f2:some results f3:\u003cnil\u003e f4:\u003cnil\u003e] \u003cnil\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamildrazkiewicz%2Fgo-flow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamildrazkiewicz%2Fgo-flow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamildrazkiewicz%2Fgo-flow/lists"}