參考 https://design-patterns.readthedocs.io/zh_CN/latest/index.html https://github.com/senghoo/golang-design-pattern 設(shè)計模式 創(chuàng)建型模式 簡單工廠模式( Simple Factory Pattern ) Golang實(shí)現(xiàn) 工廠方法模式(Factory Method Pattern) Golang實(shí)現(xiàn) 抽象工廠模式(Abstract Factory) Golang實(shí)現(xiàn) 建造者模式 Golang實(shí)現(xiàn) 單例模式 Golang實(shí)現(xiàn) 結(jié)構(gòu)型模式 適配器模式 Golang實(shí)現(xiàn) 橋接模式 Golang實(shí)現(xiàn) 裝飾模式 Golang實(shí)現(xiàn) 外觀模式 Golang實(shí)現(xiàn) 享元模式 Golang實(shí)現(xiàn) 代理模式 Golang實(shí)現(xiàn) 行為型模式 命令模式 Golang實(shí)現(xiàn) 中介者模式 Golang實(shí)現(xiàn) 觀察者模式 Golang實(shí)現(xiàn) 狀態(tài)模式 Golang實(shí)現(xiàn) 策略模式 Golang實(shí)現(xiàn)