package
1.0.0
Repository: https://github.com/cloudwan/gohan.git
Documentation: pkg.go.dev

# Functions

Clear removes singleton for a given key.
Get returns singleton for a given key, value does not exist if will be created by factory.
SetScope changes singletons scope, see scopes documentation.

# Constants

ScopeGLSSingleton is goroutine local storage singleton, with this setting bean instance is shared by a goroutine tree, child goroutines share bean instance with parent.
ScopeSingleton is default Scope, with this setting there is a single bean instance shared by all goroutines.

# Type aliases

Scope specifies bean scope, default scope is ScopeSingleton.