Versions in this module Expand all Collapse all v0 v0.1.1 Apr 15, 2024 Changes in this version + type Lifetime string v0.1.0 Feb 20, 2024 Changes in this version + const Scoped + const Singleton + const Transient + func Build() + func GetList[T any](ctx context.Context, key ...KeyStringer) ([]T, context.Context) + func Get[T any](ctx context.Context, key ...KeyStringer) (T, context.Context) + func RegisterEagerSingleton[T comparable](impl T, key ...KeyStringer) + func RegisterLazyCreator[T any](entryType RegistrationType, creator Creator[T], key ...KeyStringer) + func RegisterLazyFunc[T any](entryType RegistrationType, initializer Initializer[T], key ...KeyStringer) + type Counter interface + AddOne func() + GetCount func() int + type CounterGeneric interface + Add func(number T) + GetCount func() T + type CounterWriter interface + Add func(number int) + GetCount func() int + type Creator interface + New func(ctx context.Context) T + type Initializer func(ctx context.Context) T + type KeyStringer any + type RegistrationType string