Versions in this module Expand all Collapse all v0 v0.0.1 Nov 4, 2025 Changes in this version + var ErrBeanIdParamIsEmpty = errors.New("beanID parameter is empty") + var ErrBeanParamIsNil = errors.New("bean parameter is nil") + var ErrBeanTypeNotSupported = errors.New("beanType is not supported") + var ErrBeanTypeParamIsNil = errors.New("beanType parameter is nil") + var ErrRegistrationClosed = errors.New("container already built; registration is closed") + func ResolveAs[T any](c *Container, beanID string) (T, error) + func SetLiteralProvider(p LiteralProvider) + type Container struct + func New() *Container + func (c *Container) Build() (err error) + func (c *Container) Register(beanID string, beanType reflect.Type) error + func (c *Container) RegisterInstance(beanID string, instance any) error + func (c *Container) Resolve(beanID string) any + func (c *Container) ResolveSafe(beanID string) (any, error) + type Initializer interface + Initialize func() error + type LiteralProvider func(id string, targetType reflect.Type) (value any, found bool, err error)