Glossary: Software Design Patterns in Go
Composite
Also written: composite pattern
A pattern where a single item and a group of items answer the same method, and the group asks each part and adds up the answers. A gift `Bundle` and a `Line` both have `Price()`, so bundles can nest.