
上QQ阅读APP看书,第一时间看更新
Type hierarchy UML
This is the type hierarchy UML that we might have created while designing the Decorator pattern back in the day that we used object-oriented languages:

This is the design work needed to represent the same Decorator pattern using Go:

"Less is exponentially more"
- Rob Pike