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

- that's an optional convention, and it is not always followed

- not easy to search for this pattern.

You are right that go interfaces give you some flexibility with mocking, but i still think it's a questionable choice.



If the problem is finding implementations of an interface, that's provided by the standard tooling. If you're using VSCode just right-click on an interface and select Find All Implementations.


actually i was not using 'standard tooling'; was using vim with YouCompleteMe plugin for code completion. I couldn't get all the VSCode plugins to work well, somehow.




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

Search: