---
title: "Discussion on \"Pattern 5: Channels in Go\" | Hashnode"
description: "Discussion on \"Pattern 5: Channels in Go\". package main\n\nimport (\n    \"fmt\"\n    \"time\"\n)\n\n// Worker processes a task and sends result back\nfunc worker(id int, task string, resultChan chan string) {\n    fmt.Printf(\"Worker %d: Starting task '%s'\\n\", id, task)\n    time.Sleep(2 * time.Second) // ..."
url: "https://hashnode.com/posts/pattern-5-channels-in-go/690688a6a3ffc134b533040a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Pattern 5: Channels in Go](https://hey-there.hashnode.dev/pattern-5-channels-in-go?utm_source=hashnode&utm_medium=feed)

package main import ( "fmt" "time" ) // Worker processes a task and sends result back func worker(id int, task string, resultChan chan string) { fmt.Printf("Worker %d: Starting task '%s'\\n", id, task) time.Sleep(2 \* time.Second) // ...

Nov 1, 2025 · 2 min read · hey-there.hashnode.dev  
Read the article

## Written by

[20DIT021 BHASHKAR DHRUV](https://hashnode.com/@dhruv1812)

@dhruv1812

  
[View profile](https://hashnode.com/@dhruv1812)

embrace the imposter syndrome

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
