示例#1
0
func NewSampleFactory() base.AbstractFactory {
	s := SampleFactory{}
	f := base.NewAbstractFactory(s)
	return f
}
示例#2
0
func NewIDCardFactory() base.AbstractFactory {
	i := newIDCardFactory()
	f := base.NewAbstractFactory(i)
	return f
}