by codeflo · 13y ago · 0 comments
As for shorthand, behold!
type any interface{}
[1]: http://golang.org/pkg/sort/#Interface(Unless I'm mistaken here, which might very well be the case.)
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.