3 ms·
In Go, if T implements interface I, T is not a subtype of the interface type I. T can be converted to the interface type I, but it's not a subtype.
by pcwalton 11y ago
In Go, if T implements interface I, T is not a subtype of the interface type I. T can be converted to the interface type I, but it's not a subtype.
- sgeop 11y agoWhat's the difference though? Is this true of interfaces in Java for instance, or does it have to do with the specific implementation of go?