Re:Go 1.27 Interactive Tour
by kbolino on Sunday August 02, 2026 @11:40AM
(#49145589)
You need this in Java because interfaces are explicitly implemented. You don't need this in Go because interfaces are structurally implemented. The way you spell "anything that has a method named Size which returns int" is interface{Size() int}.
[ Parent
| on HN ]
There are no comments on this comment yet.