Skip to content

Glossary: Software Design Patterns in Go

Interface segregation principle (ISP)

Also written: ISP, interface segregation

The SOLID principle that code shouldn't depend on methods it doesn't use. Keep interfaces small, such as separate `Quoter` and `Tracker`, so a simple carrier needs no fake methods.

Where the book teaches it

Related terms

SOLIDInterface