# 设计模式

- [简单工厂模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/jian-dan-gong-chang-mo-shi.md)
- [工厂方法模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/gong-chang-fang-fa-mo-shi.md)
- [抽象工厂模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/chou-xiang-gong-chang-mo-shi.md)
- [创建者模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/chuang-jian-zhe-mo-shi.md)
- [原型模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/yuan-xing-mo-shi.md)
- [单例模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/dan-li-mo-shi.md)
- [外观模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/wai-guan-mo-shi.md)
- [适配器模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/kuo-pei-qi-mo-shi.md)
- [代理模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/dai-li-mo-shi.md)
- [组合模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/zu-he-mo-shi.md)
- [享元模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/xiang-yuan-mo-shi.md)
- [装饰模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/zhuang-shi-mo-shi.md)
- [桥模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/qiao-mo-shi.md)
- [中介者模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/zhong-jie-zhe-mo-shi.md)
- [观察者模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/guan-cha-zhe-mo-shi.md)
- [命令模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/ming-ling-mo-shi.md)
- [迭代器模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/die-dai-qi-mo-shi.md)
- [模板方法模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/mo-ban-fang-fa-mo-shi.md)
- [策略模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/ce-lve-mo-shi.md)
- [状态模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/zhuang-tai-mo-shi.md)
- [备忘录模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/bei-wang-lu-mo-shi.md)
- [解释器模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/jie-shi-qi-mo-shi.md)
- [职责链模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/zhi-ze-lian-mo-shi.md): 职责链模式用于分离不同职责，并且动态组合相关职责。Golang实现职责链模式时候，因为没有继承的支持，使用链对象包涵职责的方式，即：链对象包含当前职责对象以及下一个职责链。职责对象提供接口表示是否能处理对应请求。职责对象提供处理函数处理相关职责。同时可在职责链类中实现职责接口相关函数，使职责链对象可以当做一般职责对象是用。
- [访问者模式](/shu-ju-jie-gou-he-suan-fa/she-ji-mo-shi/fang-wen-zhe-mo-shi.md): 访问者模式可以给一系列对象透明的添加功能，并且把相关代码封装到一个类中。对象只要预留访问者接口Accept则后期为对象添加功能的时候就不需要改动对象。
