工厂模式-golang

此篇中主要是工厂模式的练习,具体能够看菜鸟教程(http://www.runoob.com/design-pattern/factory-pattern.html)html package main import ( "fmt" "strings" ) func main() { s := Shape(Rectangle{}) s.draw() s = Shape
相关文章
相关标签/搜索