Exemplo n.º 1
0
func NewSampleFactory() base.AbstractFactory {
	s := SampleFactory{}
	f := base.NewAbstractFactory(s)
	return f
}
Exemplo n.º 2
0
func NewIDCardFactory() base.AbstractFactory {
	i := newIDCardFactory()
	f := base.NewAbstractFactory(i)
	return f
}