---
title: "Discussion on \"How singleton pattern works with Golang\" | Hashnode"
description: "Discussion on \"How singleton pattern works with Golang\". I always have to implement Singleton Pattern in my projects, but in Golang there are some peculiarities that we have to take care of. In this article, I will present two ways to implement Singleton using Golang, the “Not Thread Safe” form and the “Th..."
url: "https://hashnode.com/posts/how-singleton-pattern-works-with-golang/643439795037ceb53481028f"
---

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

Discussion

# [How singleton pattern works with Golang](https://jeffotoni.hashnode.dev/how-singleton-pattern-works-with-golang?utm_source=hashnode&utm_medium=feed)

I always have to implement Singleton Pattern in my projects, but in Golang there are some peculiarities that we have to take care of. In this article, I will present two ways to implement Singleton using Golang, the “Not Thread Safe” form and the “Th...

Apr 10, 2023 · 17 min read · jeffotoni.hashnode.dev  
Read the article

-   [#developer](https://hashnode.com/tag/developer)
-   [#go](https://hashnode.com/tag/go)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[JEFFERSON OTONI LIMA](https://hashnode.com/@gojeffotoni)

@gojeffotoni

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

Senior Software Enginer, Software Architect and Entrepreneur, currently as Senior Software Enginer and Tech Lead

Senior Software Enginer, Software Architect, Entrepreneur and Tech Lead .

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
