An Interface in Go defines a behavior. Interfaces are defined with a number of methods that a type must implement. Once the methods are implemented, the type can be used wherever the interface type is needed. Let’s for example define a Phone interface: type Phone interface { Call() } We also define a Nokia type that […]