Go functions look like any language’s functions until they return two things at once and nothing weird happens. Today: syntax, multiple returns, variadics, closures and defer, your open resources’ best friend. Syntax: the type goes after The type after the name feels odd for ten minutes, then reads better, especially in complex signatures. The official […]
READ MORE
You’ve got types and variables from the previous article. Today: Go control structures. The news: Go has fewer pieces than any language you’ve used. The surprise: you won’t miss a single one. if: no parentheses, one trick Go’s if drops the parentheses and demands braces always, whether it’s one line or twenty (A Tour of […]
READ MORE
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
In the previous article we installed Go and compiled our first binary. Today we cover the raw material everything else is made of: Go data types, variables and constants. And at the end, iota, that word that shows up in every Go codebase and nobody explains right the first time. Static typing, minimal ceremony Go […]
READ MORE