A list of design patterns implemented in Go with simple and stupid examples:
-
Behavioral design patterns:
- Strategy
- Observer
- Command
- Chain of Responsibility
- Mediator
- Memento
- State
- Template
- Visitor
- Iterator
-
Creational design patterns:
- Factory method
- Abstract factory
- Singleton
- Prototype
- Builder
-
Structural:
- Adapter
- Decorator
- Facade
- Composite
- Flyweight
- Proxy
- Bridge