# Oh, my design patterns

一本关于设计模式的电子书，记录了我学习设计模式时写的文章以及代码。若有纰漏，欢迎指正与交流。😀

👉 [点击查看源码](https://github.com/InnoFang/oh-my-design-patterns/tree/master)

## 目录

* [创建型（Creational）](https://github.com/InnoFang/oh-my-design-patterns/tree/26a29a19a0139b4a0d8ebaeb13a85d5caa9fe630/%E5%88%9B%E5%BB%BA%E5%9E%8B%EF%BC%88Creational%EF%BC%89/README.md)
  * [工厂方法模式](chuang-jian-xing-creational/1.-gong-chang-fang-fa-mo-shi)
  * [抽象工厂模式](chuang-jian-xing-creational/2.-chou-xiang-gong-chang-mo-shi)
  * [建造者模式](chuang-jian-xing-creational/3.-jian-zao-zhe-mo-shi)
  * [原型模式](chuang-jian-xing-creational/4.-yuan-xing-mo-shi)
  * [单例模式](chuang-jian-xing-creational/5.-dan-li-mo-shi)
* [结构型（Structural）](https://github.com/InnoFang/oh-my-design-patterns/tree/26a29a19a0139b4a0d8ebaeb13a85d5caa9fe630/%E7%BB%93%E6%9E%84%E5%9E%8B%EF%BC%88Structural%EF%BC%89/README.md)
  * [适配器模式](jie-gou-xing-structural/1.-shi-pei-qi-mo-shi)
  * [装饰模式](jie-gou-xing-structural/2.-zhuang-shi-mo-shi)
  * [外观模式](jie-gou-xing-structural/3.-wai-guan-mo-shi)
  * [享元模式](jie-gou-xing-structural/4.-xiang-yuan-mo-shi)
  * [代理模式](jie-gou-xing-structural/5.-dai-li-mo-shi)
* [行为型（Behavioral）](https://github.com/InnoFang/oh-my-design-patterns/tree/26a29a19a0139b4a0d8ebaeb13a85d5caa9fe630/%E8%A1%8C%E4%B8%BA%E5%9E%8B%EF%BC%88Behavioral%EF%BC%89/README.md)
  * [模板方法模式](hang-wei-xing-behavioral/1.-mo-ban-fang-fa-mo-shi)
  * [责任链模式](hang-wei-xing-behavioral/2.-ze-ren-lian-mo-shi)
  * [迭代器模式](hang-wei-xing-behavioral/3.-die-dai-qi-mo-shi)
  * [备忘录模式](hang-wei-xing-behavioral/4.-bei-wang-lu-mo-shi)
  * [观察者模式](hang-wei-xing-behavioral/5.-guan-cha-zhe-mo-shi)
  * [状态模式](hang-wei-xing-behavioral/6.-zhuang-tai-mo-shi)
  * [策略模式](hang-wei-xing-behavioral/7.-ce-lve-mo-shi)
  * [访问者模式](hang-wei-xing-behavioral/8.-fang-wen-zhe-mo-shi)

## License

[![Creative Commons License](https://i.creativecommons.org/l/by-nc/4.0/88x31.png)](http://creativecommons.org/licenses/by-nc/4.0/)\
This work is licensed under a [Creative Commons Attribution-NonCommercial 4.0 International License](http://creativecommons.org/licenses/by-nc/4.0/).

本作品采用[知识共享署名-非商业性使用 4.0 国际许可协议](http://creativecommons.org/licenses/by-nc/4.0/)进行许可。
