3 ms·
Only if you had a method with that exact signature: taking a []byte argument and returning an int and an error. You'd have to stretch to have that happen by cha
by dsymonds 13y ago
Only if you had a method with that exact signature: taking a []byte argument and returning an int and an error. You'd have to stretch to have that happen by chance.
- garethadams 13y agoOk, I did think that would be part of it but the only reference I could find in the documentation was at http://golang.org/doc/faq#overloading http://golang.org/doc/faq#overloading which suggested that names are the only thing considered. (The other document I looked at before was http://golang.org/doc/effective_go.html http://golang.org/doc/effective_go.html which didn't help) Fair enough, I did say I was only speculating and I've learned something.