GoInterfaces

Download Go for free

Remarks

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.

Related Examples

Compile-time check if a type satisfies an interface