Description

Call to create a new singleton that is instantiated with the given init function. init is not called until the first invocation of Get(). If init errors, it will be called again on the next invocation of Get().

NewSingleton is referenced in 1 repository

github.com/dropbox/godropbox