Versions in this module Expand all Collapse all v0 v0.2.0 Jul 23, 2024 Changes in this version + var NotFactory = errors.New("Wrong type for a factory") + var NotFound = errors.New("No binding") + var NotReceptor = errors.New("Wrong type for a receptor") + func GetFresh[T any](loc *Locator) (value T, err error) + func Get[T any](loc *Locator) (singleton T, err error) + func SetSingleton[T any](loc *Locator, singleton T) error + type Locator struct + func New() *Locator + func (self *Locator) Bind(factory interface{}) error + func (self *Locator) Fresh(receptor interface{}) error + func (self *Locator) Inject(chain ...interface{}) error + func (self *Locator) Sub() *Locator