Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>Is it when the String method was added to it?

Yes, that is how you satisfy an interface in Go.

>What if you have interfaces with similar names?

The problem of interfaces with similar names is actually no different than the problems of, for example, packages or functions having similar names. It's down to you to avoid naming things in a confusing manner.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: