Decoding Golang Interfaces: Why Your Struct Fits an Interface It Never Met
If you’re coming to Golang from a language like Java, C#, or other language, you’ve probably run into a piece of code that left you scratching your head. It looks something like this: package main import “fmt” // 1. The Concrete Type type A struct { abc string } // 2. The Method attached to…
