A distributed system is one in which the failure of a computer you didn’t even know existed can render your own computer unusable.
Leslie Lamport
Singleton Pattern in Go: Implementation and Use Cases
Singleton is one of the most controversial patterns. Some call it an anti-pattern, others use it everywhere. Let’s explore how to properly implement Singleton in Go and when it’s actually needed.