Skip to content

Glossary: Software Design Patterns in Go

Interface

Also written: interfaces

The set of methods that code expects a value to have, whatever the concrete type. In Go a type satisfies an interface implicitly, and small interfaces defined where they are used work best.

Where the book teaches it

Related terms

Implicit satisfactionInterface segregation principle (ISP)