Hacker News new | past | comments | ask | show | jobs | submit login

If that interface was in the http package, that would be a problem. Let's say they want to add a new method to http.Client . Would they add that to the interface? If no, then it would be difficult to test code that uses that new method. If yes, then all existing mocking code will stop compiling, because those mocks will no longer implement that interface.



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

Search: