4 ms·
> Interfaces are a subset of classes. If you're thinking like Java. Go says: interfaces come after classes, not before. They describe the features you want, a
by JulianMorrison 6y ago
> Interfaces are a subset of classes.
If you're thinking like Java.
Go says: interfaces come after classes, not before. They describe the features you want, and any class can match them if it has the features. Therefore an interface is decoupled from the classes it matches.
- isaiahg 6y agoI've been writing a lot of go lately and it's making me a better programmer. Not just interfaces but methods too