DesignPattern-Go
《图解设计模式》 Go语言实现
运行方式
整体程序没有main函数,通过单元测试go test
命令进行程序运行测试
调用逻辑见*_test.go
,用户可以自行修改
《图解设计模式》 阅读笔记(待更新)
目前进度
章节 | 代码 | 笔记 |
---|---|---|
01.Iterator | √ | |
02.Adapter | ||
03.Template Method | ||
04.Factory Method | ||
05.Singleton | ||
06.Prototype | ||
07.Builder | ||
08.Abstract Factory | ||
09.Bridge | ||
10.Strategy | ||
11.Composite | ||
12.Decorator | ||
13.Visitor | ||
14.Chain of Responsibility | ||
15.Facade | ||
16.Mediator | ||
17.Observer | ||
18.Memento | ||
19.State | ||
20.Flyweight | ||
21.Proxy | ||
22.Command | ||
23.Interpreter |