package
0.0.0-20241214025824-d997f9529958
Repository: https://github.com/kelein/cookbook.git
Documentation: pkg.go.dev

# Functions

GetInstance return a singleton instance.
GetObject return a singleton object.
GetObjectOnce return a singleton with sync.Once.
GetObjectWithAtomic return a singleton object with atomic.
GetObjectWithLock return a singleton object with mutex.
GetObjectWithMyOnce return a singleton with custom Once.

# Structs

MyOnce implement sync Once.
Object stands for a singleton object.
Singleton stands for a singleton object.