DEV Community

loading...

Discussion on: The Problem with Interfaces, and how Go Fixed it

Collapse
dean profile image
Dean Bassett Author

If the interface changes, you no longer implement the interface if your struct does not have the matching methods. This will most likely cause issues at compile-time, so you are able to catch it very early.