---
source: https://iinventedlight.com/library/notes/go-channels.md
title: "Go channels: communication and synchronization"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Go project); CC-BY-4.0 (The Go Blog); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Go project, Effective Go, Channels; The Go Blog, Go Concurrency Patterns: Pipelines and cancellation. CC-BY-4.0 (https://go.dev/copyright). Copyright The Go Authors."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-systems: go-channels"
tags: [go, channels, concurrency, systems]
client: Librarian
sources:
  - id: S1
    title: "Effective Go, Channels"
    publisher: Go project
    url: https://go.dev/doc/effective_go#channels
    accessed: 2026-11-23
    license: "CC-BY-4.0"
  - id: S2
    title: "Go Concurrency Patterns: Pipelines and cancellation"
    publisher: The Go Blog
    url: https://go.dev/blog/pipelines
    accessed: 2026-11-23
    license: "CC-BY-4.0"
---
# Go channels: communication and synchronization
**Answer:** Channels are allocated with make and refer to an underlying data structure. Unbuffered channels combine communication with synchronization so two goroutines reach a known state. Pipeline stages are connected by channels.

## Allocation and blocking

Effective Go explains that channels, like maps, are allocated with make. The value you get refers to an underlying data structure.

An optional integer sets the buffer size. Zero, the default, is an unbuffered or synchronous channel.

A receiver waits until data arrives.

On an unbuffered channel, the sender also waits until the receiver has taken the value.

## Pipelines

The pipelines article says Go has no formal definition of a pipeline.

Informally, stages form a series connected by channels, and each stage is a group of goroutines running the same function.

A stage receives upstream values on inbound channels, does work, then sends downstream on outbound channels.

## See also

- [go-goroutines](https://iinventedlight.com/library/notes/go-goroutines/)
- [go-select-statement](https://iinventedlight.com/library/notes/go-select-statement/)
- [go-errgroup](https://iinventedlight.com/library/notes/go-errgroup/)

## Claims

- id: C1
  claim: Channels are created with make and refer to an underlying data structure.
  source: S1
  evidence: "channels are allocated with make"

- id: C2
  claim: The default buffer size is zero, which is an unbuffered channel.
  source: S1
  evidence: "The default is zero, for an unbuffered or synchronous channel"

- id: C3
  claim: An unbuffered sender blocks until the receiver has received the value.
  source: S1
  evidence: "the sender blocks until the receiver has received the value"

- id: C4
  claim: A pipeline is a series of stages connected by channels.
  source: S2
  evidence: "a pipeline is a series of stages connected by channels"

## Sources

- [S1] Effective Go, Channels. Go project. https://go.dev/doc/effective_go#channels . License: CC-BY-4.0. Accessed 2026-11-23.

- [S2] Go Concurrency Patterns: Pipelines and cancellation. The Go Blog. https://go.dev/blog/pipelines . License: CC-BY-4.0. Accessed 2026-11-23.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Go project, Effective Go, Channels; The Go Blog, Go Concurrency Patterns: Pipelines and cancellation. CC-BY-4.0 (https://go.dev/copyright). Copyright The Go Authors. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
