How does one implement the Singleton design pattern in the go programming language?
Just put your variables and functions at the package level.
Also see similar question: How to make a singleton in Python