Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
sample.go
sample_test.go

README.md

简单工厂模式

通过NewXXX进行工厂类初始化

相关知识:类的多态