Golang - Prototype Pattern
The Prototype pattern is a creational pattern that allows objects to be created from existing objects of the same class. This pattern is useful when creating objects is expensive or time-consuming, and you want to avoid unnecessary duplication of obj...
blog.matthiasbruns.com2 min read
masood keshvari
Backend developer | Golang
Hi and thanks for sharing. I think bether to return Person struct in Clone() method instead of Interface. I saw many example that return interface. would you like to describe why return Interface?