Home

搜索

SearchSearch
        • PBFT算法
        • 椭圆曲线算法
        • Chainlink
        • golang设计模式
    Home

    ❯

    golang

    ❯

    design patterns

    ❯

    golang设计模式

    golang设计模式

    2024年5月20日2分钟阅读

    MOC

    创建模式 (Creational Patterns)

    • 工厂方法模式 (Factory Method Pattern)
    • 抽象工厂模式 (Abstract Factory Pattern)
    • 单例模式 (Singleton)
    • 建造者模式 (Builder)
    • 对象池 (Object Pool)

    结构模式 (Structural Patterns)

    • 桥接模式 (bridge pattern)
    • 组合模式 (Composite)
    • 装饰器模式 (Decorator Pattern)
    • 外观(门面)模式 (Facade Pattern)
    • 享元模式 (Flyweight Pattern)
    • 代理模式 (Proxy Pattern)
    • 适配器模式 (Adapter Pattern)

    行为模式 (Behavioural Patterns)

    • 责任链模式 (Chain of Responsiblity Pattern)
    • 命令模式 (Command Pattern)
    • 中介者模式 (Mediator Pattern)
    • 备忘录模式 (Memento Pattern)
    • 迭代器模式 (Iterator Pattern)
    • 观察者模式 (Observer Pattern)
    • 注册模式 (Registry Pattern)
    • 状态模式 (State Pattern)
    • 策略模式 (Strategy Pattern)
    • 模板方法模式 (Template Pattern)
    • 访问者模式 (Visitor Pattern)
    • 解释器模式 (Interpreter Pattern)
    • 空对象模式 (Null Object Pattern)

    参考

    • https://github.com/tmrts/go-patterns (不全)
    • https://github.com/crazybber/awesome-patterns (补充)
    • https://golangbyexample.com/all-design-patterns-golang/ 合集(英文)
    • https://www.zhyea.com/2022/03/27/golang-patterns.html 合集(中文)
    • http://t.zoukankan.com/zgq0-p-12312306.html (目录)

    关系图谱

    • MOC
    • 创建模式 (Creational Patterns)
    • 结构模式 (Structural Patterns)
    • 行为模式 (Behavioural Patterns)
    • 参考

    反向链接

    • WangHaoYi's website

    Created with Quartz v4.2.3 © 2024

    • GitHub
    • Discord Community