工廠模式-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
相關文章
相關標籤/搜索