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)