Interfaces Implementation

Learn how interfaces can be implemented in Go.

Interfaces are satisfied implicitly

Unlike in many other languages, you don’t need to explicitly specify that a struct implements an interface. The compiler can work it out by itself which makes a lot of sense and is very convenient in practice:

Get hands-on with 1400+ tech skills courses.