设计模式学习 只会列举出常用的几种设计模式类型,其余的可以阅读相关书籍参考。 本代码参考
|-- ─ adapterPattern 适配器模式
|-- ─ appearancePattern 外观模式
|-- ─ commandPattern 命令模式
|-- ─ decoratorPattern 装饰器模式
|-- ─ factoryPattern 工厂模式
|-- ─ go.mod
|-- ─ observerPattern 观察者模式
|-- ─ proxyPattern 代理模式
|-- ─ readme.md
|-- ─ responsibilityChain 职责链模式
|-- ─ singletonPattern 单例模式
|-- ─ strategyPattern 策略模式
`-- ─ templateMethodPattern 模板方法模式
如有疑问,欢迎讨论。