{"id":24499924,"url":"https://github.com/luillyfe/synack-api-golang","last_synced_at":"2025-06-11T20:40:39.382Z","repository":{"id":74587571,"uuid":"313795338","full_name":"luillyfe/synack-api-golang","owner":"luillyfe","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-23T16:40:36.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T07:22:05.106Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luillyfe.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-11-18T02:00:21.000Z","updated_at":"2020-11-23T16:40:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d6e64a2-d99e-44df-995d-0647733bc367","html_url":"https://github.com/luillyfe/synack-api-golang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luillyfe/synack-api-golang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luillyfe%2Fsynack-api-golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luillyfe%2Fsynack-api-golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luillyfe%2Fsynack-api-golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luillyfe%2Fsynack-api-golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luillyfe","download_url":"https://codeload.github.com/luillyfe/synack-api-golang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luillyfe%2Fsynack-api-golang/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259336328,"owners_count":22842507,"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","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":[],"created_at":"2025-01-21T22:16:23.867Z","updated_at":"2025-06-11T20:40:39.327Z","avatar_url":"https://github.com/luillyfe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Concurrency in go \n\nIt describe how to make concurrent http request using channels, how to parse json into Structs and custom its fields.\n\n## Installation\n\nTake a look at [go commands](https://golang.org/cmd/go/) for more details.\n\n```bash\ngo build -o /yourfoldertodeploy .\ngo run /yourfoldertodeploy/yourexecfile\n```\n\n## Concurrenry using channels\n\n```go\ngo func(ch chan []googleItems) {\n    var bing googleResponse\n\n    err := json.Unmarshal(searchOnBing(query), \u0026bing)\n    if err != nil {\n\tlog.Fatal(err)\n    }\n\n    ch \u003c- bing.Items\n}(ch)\n\ngo func(ch chan []googleItems) {\n    var google googleResponse\n\n    err := json.Unmarshal(searchOnGoogle(query), \u0026google)\n    if err != nil {\n\tlog.Fatal(err)\n    }\n\n    ch \u003c- bing.Items\n}(ch)\n\nresponseJSON, _ := json.Marshal(\u0026response{Bing: \u003c-ch, Google: \u003c-ch})\n```\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluillyfe%2Fsynack-api-golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluillyfe%2Fsynack-api-golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluillyfe%2Fsynack-api-golang/lists"}