3 ms·
Check it out: http://play.golang.org/p/l9yn0PRbrd http://play.golang.org/p/l9yn0PRbrd Anyway, that's the point of go's type inference- if the object implements
by krakensden 13y ago
Check it out: http://play.golang.org/p/l9yn0PRbrd http://play.golang.org/p/l9yn0PRbrd
Anyway, that's the point of go's type inference- if the object implements the necessary parts of the interface, it counts as that kind of object.