常用 #### Gang of Four (GoF):: Design Patterns: Elements of Reusable Object-Oriented Software (1994) 这本书的4个作者: 1. Erich Gamma 2. Richard Helm 3. Ralph Johnson 4. John Vlissides with a foreword by Grady Booch 概述:: 一. 创建型模式 1. 工厂方法模式 2. 抽象工厂模式 3. 单例模式 4. 建造者模式 5. 原型模式 二. 结构型模式 1. 适配器模式 2. 装饰器模式 3. 代理模式 4. 外观模式 5. 桥接模式 6. 组合模式 7. 享元模式 三. 行为型模式 1. 策略模式 2. 模板方法模式 3. 观察者模式 4. 迭代子模式 5. 责任链模式 6. 命令模式 7. 备忘录模式 8. 状态模式 9. 访问者模式 10. 中介者模式 11. 解释器模式 对应英文:: 一. Creational: 1. Factory method: 2. Abstract factory: 3. Singleton: 4. Builder: 5. Prototype: 二. Structural: 1. Adapter 2. Decorator 3. Proxy 4. Facade 5. Bridge 6. Composite 7. Flyweight 三. Behavioral: 1. Strategy 2. Template method 3. Observer 4. Iterator 5. Chain of responsibility 6. Command 7. Memento 8. State 9. Visitor 10. Mediator 11. Interpreter 设计模式是针对软件开发中经常遇到的一些设计问题,总结出来的一套解决方案或者设计思路。应用设计模式的主要目的是提高代码的可扩展性。从抽象程度上来讲,设计原则比设计模式更抽象。设计模式更加具体、更加可执行。 参考 ==== * 23 种设计模式全解析: https://www.cnblogs.com/geek6/p/3951677.html * [wiki]Design Patterns: https://en.wikipedia.org/wiki/Design_Patterns * [极客时间-孔令飞]11|设计模式:Go 常用设计模式概述: https://time.geekbang.org/column/article/386238 * 使用 Go 实现 GoF 的 23 种设计模: https://juejin.cn/post/6859015515344633863 * GoF 设计模式: https://github.com/qiualiang/gof * Go 设计模式 24 - 总结: https://lailin.xyz/post/go-design-pattern.html