Skip to content

Glossary: Software Design Patterns in Go

Delegation

Also written: delegate

Handing a job to a part you hold. `Product.Total` delegates to its pricing part and its wrapping part, then adds their answers.

Where the book teaches it

Related terms

Composition