Hacker News new | ask | show | jobs
by krakensden 4593 days ago
Check it out: 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.