3 ms·
The thing about interfaces and Go that is kind of unique is that unlike with Java you don't need to declare up front that a struct implements a particular inter
by fishnchips 12y ago
The thing about interfaces and Go that is kind of unique is that unlike with Java you don't need to declare up front that a struct implements a particular interface. And you can easily have a sort of interface composition like if you have a io.ReadWriter interface which is just a 'virtual' interface that implemements both io.Reader and io.Writer interfaces. Not a breakthrough in CS but still a very convenient and not so common thing.