3 ms·
How can one satisfy interfaces with primitive types, other than the trivial case of interface{}, given they don't have methods and you can't add any?
by parenthephobia 10y ago
How can one satisfy interfaces with primitive types, other than the trivial case of interface{}, given they don't have methods and you can't add any?
- sagichmal 10y agotype myInt int func (i myInt) Foo() {}