Go Interfaces: Favoring Composition Over Inheritance (With a Dash of Common Sense)
Coming from a language like C# or JavaScript, interfaces in Go can feel like a cruel joke. They’re not what you expect, and they don’t play by the rules you’re used to. This post is your survival guide to Go interfaces. Interfaces – The Old Way In more traditional languages, interfaces are binding contracts: you … Read more