DEV Community

loading...

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

kunde21 profile image
Chad Kunde

In the case of passing a struct into a function that takes an interface, the compiler enforces interface requirements. It will even tell you what methods are missing from the type which cause it not to fulfill the interface.