gopattern:Go语言23种设计模式

时间:2024-03-05 22:13:53
【文件属性】:

文件名称:gopattern:Go语言23种设计模式

文件大小:1.07MB

文件格式:ZIP

更新时间:2024-03-05 22:13:53

Go

图案 Go语言23种设计模式 创建型模式 如何创建对象的模式? 创建者模式(Builder) 结构型模式 如何组合对象或类,形成更强大的结构? 外观模式(门面) 适配器模式(Adapter) 代理模式(Proxy) 组合模式(复合) 享元模式(Flyweight) 装饰模式(装饰器) 桥模式(Bridge) 行为型模式 如何将多个类或对象相互协作,完成特定对象无法完成的任务,涉及算法与对象间职责的分配? 中介者模式(Mediator) 观察者模式(观察者) 命令模式(Command) 迭代器模式(Iterator) 模板方法模式(Template Method) 策略模式(Strategy) 状态模式(State) 备忘录模式(Memento) 解释器模式(口译) 职责链模式(责任链) 访问者模式(访问者)


【文件预览】:
gopattern-main
----go.mod(48B)
----creator()
--------main.go(2KB)
--------simple()
--------builder()
--------prototype()
--------abstract()
--------singleton()
--------method()
----structure()
--------composite()
--------decorator()
--------flyweight()
--------facade()
--------proxy()
--------adapter()
--------bridge()
----README.md(2KB)

网友评论