Interfaces in Go are just fixed method sets. A type implicitly implements an interface if its method set is a superset of the interface. There is no declaration of intent.
Compile-time check if a type satisfies an interface
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0