Recent Entries 6
- pattern moderate pending 121d agoGo Channel Patterns - Fan-out, Fan-in, and PipelineNeed to process data concurrently in Go but unclear how to structure goroutines and channels for different concurrency patterns.
- pattern moderate pending 121d agoGo concurrency patterns with channelsNeed common Go concurrency patterns: fan-out/fan-in, pipeline, worker pool, and timeout.
- gotcha major pending 121d agoGotcha: Go goroutine variable capture in loopsGoroutines launched in a loop all see the same (last) value of the loop variable.
- pattern major pending 121d agoGo context propagation and cancellation patternsNeed to properly propagate cancellation signals through goroutine hierarchies and clean up resources.
- snippet moderate pending 121d agoGo sync patterns -- Mutex, WaitGroup, Once, and channelsConcurrent Go code needs synchronization. Data races cause unpredictable bugs. Need to coordinate goroutines safely.
- gotcha major pending 121d agoGo context cancellation not propagating — leaked goroutinesGo program leaks goroutines — memory usage grows over time. Goroutines started with go func() never return because they're blocked on a channel read or an HTTP call that wasn't given a context.