
The Prototype pattern is a creational pattern that allows objects to be created from existing objects of the same class.
Freelancer Backend & Technical Lead; Founder of Happy Ann
Senior Freelancer & Technical Lead Working as a Golang developer since 2020. Working as a mobile developer since 2013. Focussed on architecture, testability and clean code. Open minded & product driven. Based in Rhede, available world-wide
Markdown supported · ⌘↵ to post
masood keshvari
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?