4 ms·
> your type has a method with that name. I would say with the same function signature, not just the name.
by melvinmt 13y ago
> your type has a method with that name.
I would say with the same function signature, not just the name.
- usea 13y agoGo doesn't support overloading. Method dispatch is done by name only. http://golang.org/doc/faq#overloading http://golang.org/doc/faq#overloading
- statusgraph 13y agoIt doesn't work :) http://play.golang.org/p/PVS5sarmHb http://play.golang.org/p/PVS5sarmHb
- dragonwriter 13y agoBut interface satisfaction is by signature, not name, and that is what is being discussed, not method dispatch.
- usea 13y agoSorry, I didn't mean to conflate the two. Thanks for the clarification.