Skip to main content

Category: Go

Go from scratch, chapter 0: what you’ll learn in this series

Heads up This series is written with the help of artificial intelligence (Claude), cross-checking every technical claim against the official Go documentation (go.dev) and citing the source for every relevant statement. Even so, it doesn’t replace your own judgment: compile it, test it, and be suspicious of any paragraph with no link behind it. Spot […]

READ MORE

Go from scratch, part 11: goroutines and the CSP model

Everything so far was the warm-up. Go concurrency is why the language exists and probably why you’re reading this series. And it starts with two letters: go. A goroutine is a function flying solo Put go in front of any call and that function runs concurrently, without blocking its launcher (A Tour of Go, goroutines): […]

READ MORE

Go from scratch, part 12: channels and select

Last article our goroutines flew solo and we waited for them with time.Sleep, which is like synchronizing watches by yelling out the window. Today the real tool arrives: Go channels, the typed pipes goroutines pass data through and, as a bonus, synchronize with. Channels: send, receive, block A channel is created with make and it’s […]

READ MORE