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) Expand ▾ Collapse ▴ Directories ¶ Show internal Expand all Path Synopsis 00_simple_factory 01_facade 02_adapter 03_singleton 04_factory_method 05_abstract_factory 06_builder 07_prototype 08_mediator 09_proxy 10_observer 11_command 12_iterator 13_composite 14_template_method 15_strategy 16_state 17_memento 18_flyweight 19_interpreter 20_decorator 21_chain_of_responsibility 22_bridge 23_visitor Click to show internal directories. Click to hide internal directories.