---
title: "Discussion on \"Golang - Prototype Pattern\" | Hashnode"
description: "Discussion on \"Golang - Prototype Pattern\". The Prototype pattern is a creational pattern that allows objects to be created from existing objects of the same class."
url: "https://hashnode.com/posts/golang-prototype-pattern/6406e928fbcc00f5f8900302"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Golang - Prototype Pattern](https://blog.matthiasbruns.com/golang-prototype-pattern?utm_source=hashnode&utm_medium=feed)

The Prototype pattern is a creational pattern that allows objects to be created from existing objects of the same class.

Mar 7, 2023 · 2 min read · blog.matthiasbruns.com  
Updated Mar 10, 2023  
Read the article

-   [#go](https://hashnode.com/tag/go)
-   [#golang](https://hashnode.com/tag/golang)
-   [#patterns](https://hashnode.com/tag/patterns)
-   [#code](https://hashnode.com/tag/code)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Matthias Bruns](https://hashnode.com/@matthiasbruns)

@matthiasbruns · Rhede, Germany

  
[View profile](https://hashnode.com/@matthiasbruns)

Freelancer Backend & Technical Lead; Founder of Happy Ann

Senior Freelancer &amp; 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 &amp; product driven. Based in Rhede, available world-wide

## Responses 1

Markdown supported · ⌘↵ to post

[masood keshvari](https://hashnode.com/@masoodkeshvari)

[Feb 1, 2024](https://hashnode.com/posts/golang-prototype-pattern/6406e928fbcc00f5f8900302/comment/65bbbfae218f292b04f2d89b)

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?
