Description

Interface for accessing singleton objects.

Example use: var configSelectorSingleton = NewSingleton(init) func configSelector() (configSelector, error) {

s, err := configSelectorSingleton.Get()
if err != nil {
    return nil, err
}
return s.(configSelector), nil

}

Singleton is referenced in 1 repository

github.com/dropbox/godropbox