Design Patterns Implementation in go
Structural design patterns describe the relationships between the entities. They are used to form large structures using classes and objects. These patterns are used to create a system with different system blocks in a flexible manner. Adapter, bridge, composite, decorator, facade, flyweight, private class data, and proxy are the Gang of Four (GoF) structural design patterns. The private class data design pattern is the other design pattern covered in this section.
# | Design Pattern | Address |
---|---|---|
1 | Adapter | Adapter |
2 | Bridge | Bridge |
3 | Composite | Composite |
4 | Decorator | Decorator |
5 | Facade | Facade |
6 | FlyWeight | FlyWeight |
7 | Private Class Data | PrivateClassData |
8 | Proxy | Proxy |