{"id":20096352,"url":"https://github.com/nomad-software/go-channel-compendium","last_synced_at":"2025-05-06T05:31:38.501Z","repository":{"id":73414840,"uuid":"49456360","full_name":"nomad-software/go-channel-compendium","owner":"nomad-software","description":"Interesting ways of using Go channels by John Graham-Cumming","archived":false,"fork":false,"pushed_at":"2016-01-20T19:13:38.000Z","size":13,"stargazers_count":22,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T08:51:17.496Z","etag":null,"topics":["concurrency","go","golang"],"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/nomad-software.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-01-11T21:43:34.000Z","updated_at":"2023-08-28T07:01:39.000Z","dependencies_parsed_at":"2023-03-21T13:43:06.596Z","dependency_job_id":null,"html_url":"https://github.com/nomad-software/go-channel-compendium","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomad-software%2Fgo-channel-compendium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomad-software%2Fgo-channel-compendium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomad-software%2Fgo-channel-compendium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomad-software%2Fgo-channel-compendium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nomad-software","download_url":"https://codeload.github.com/nomad-software/go-channel-compendium/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252629044,"owners_count":21779131,"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":["concurrency","go","golang"],"created_at":"2024-11-13T16:58:35.394Z","updated_at":"2025-05-06T05:31:37.777Z","avatar_url":"https://github.com/nomad-software.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Go Channel Compendium\n**Interesting ways of using Go channels by John Graham-Cumming**\n\n---\n\n## Overview\n\nThis is a code archive taken from the slides of John Graham-Cumming's\npresentation of 'A Channel Compendium' given at GopherCon 2014.\n\n## Video\n\nhttps://www.youtube.com/watch?v=SmoM1InWXr0\n\n## Contents\n\n* Signalling\n  * [Wait for an event](https://github.com/nomad-software/go-channel-compendium/blob/master/signalling/wait-for-an-event/main.go)\n  * [Coordinate multiple goroutines](https://github.com/nomad-software/go-channel-compendium/blob/master/signalling/coordinate-multiple-goroutines/main.go)\n  * [Coordinated termination of workers](https://github.com/nomad-software/go-channel-compendium/blob/master/signalling/terminate-workers/main.go)\n  * [Verify termination of workers](https://github.com/nomad-software/go-channel-compendium/blob/master/signalling/verify-terminate-workers/main.go)\n* Hide state\n  * [Unique ID service](https://github.com/nomad-software/go-channel-compendium/blob/master/hide-state/unique-id-service/main.go)\n  * [Memory recycler](https://github.com/nomad-software/go-channel-compendium/blob/master/hide-state/memory-recycler/main.go)\n  * [Capped memory recycler](https://github.com/nomad-software/go-channel-compendium/blob/master/hide-state/capped-memory-recycler/main.go)\n* Nil channels\n  * [Disable receiving case statements](https://github.com/nomad-software/go-channel-compendium/blob/master/nil-channels/disable-receiving-case-statements/main.go)\n  * [Disable sending case statements](https://github.com/nomad-software/go-channel-compendium/blob/master/nil-channels/disable-sending-case-statements/main.go)\n* Timers\n  * [Timeout](https://github.com/nomad-software/go-channel-compendium/blob/master/timers/timeout/main.go)\n  * [Heartbeat](https://github.com/nomad-software/go-channel-compendium/blob/master/timers/heartbeat/main.go)\n* Examples\n  * [Network multiplexer](https://github.com/nomad-software/go-channel-compendium/blob/master/examples/network-multiplexer/main.go)\n  * [First response](https://github.com/nomad-software/go-channel-compendium/blob/master/examples/first-response/main.go)\n  * [Passing a channel](https://github.com/nomad-software/go-channel-compendium/blob/master/examples/passing-a-channel/main.go)\n  * [HTTP load balancer](https://github.com/nomad-software/go-channel-compendium/blob/master/examples/http-load-balancer/main.go)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomad-software%2Fgo-channel-compendium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnomad-software%2Fgo-channel-compendium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomad-software%2Fgo-channel-compendium/lists"}