History of Idiom 73 > diff from v320 to v321
Edit summary for version 321 by programming-idioms.org:
[Go] pFact -> fact
[Go] pFact -> fact
↷
Version 320
2016-06-12, 16:49:45
Version 321
2016-06-12, 16:52:09
Idiom #73 Create a factory
Create a factory named pFact for any sub class of Parent and taking exactly one string str as constructor parameter.
Idiom #73 Create a factory
Create a factory named pFact for any sub class of Parent and taking exactly one string str as constructor parameter.
Comments bubble
Go doesn't have subtyping, but Parent could be any type: struct, interface, etc.
Comments bubble
Go doesn't have subtyping, but Parent could be any type: struct, interface, etc.