senghoo /golang-design-pattern

设计模式 Golang实现-《研磨设计模式》读书笔记

★ 9,034⑂ 2,065👁 194⑃ 17● 17▤ 0
GoMITCreated 2016-03-12
+0
日增长
9,034
stars
2,065
forks
194
watchers
17
prs
17
issues
0
releases

README

Go 语言设计模式



Go 语言设计模式的实例代码

 创建型模式

 简单工厂模式(Simple Factory)
 工厂方法模式(Factory Method)
 抽象工厂模式(Abstract Factory)
 创建者模式(Builder)
 原型模式(Prototype)
 单例模式(Singleton)

 结构型模式

 外观模式(Facade)
 适配器模式(Adapter)
 代理模式(Proxy)
 组合模式(Composite)
 享元模式(Flyweight)
 装饰模式(Decorator)
 桥模式(Bridge)

 行为型模式

 中介者模式(Mediator)
 观察者模式(Observer)
 命令模式(Command)
 迭代器模式(Iterator)
 模板方法模式(Template Method)
 策略模式(Strategy)
 状态模式(State)
 备忘录模式(Memento)
 解释器模式(Interpreter)
 职责链模式(Chain of Responsibility)
 访问者模式(Visitor)

Top issues

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON