Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Dig = NewDI() Type = reflect.TypeOf(NewDI()) )
Functions ¶
func Export ¶ added in v1.1.16
func Export() utils.OptionFunc[provideOption]
func Group ¶
func Group(group string) utils.OptionFunc[provideOption]
func Name ¶
func Name(name string) utils.OptionFunc[provideOption]
Types ¶
type DI ¶
type DI interface { Invoke(fn any) error MustInvoke(fn any) Provide(fn any, opts ...utils.OptionExtender) error MustProvide(fn any, opts ...utils.OptionExtender) DI Decorate(decorator any) error MustDecorate(decorator any) DI Scope(name string, opts ...utils.OptionExtender) DI String() string Clear() Preload() }
Click to show internal directories.
Click to hide internal directories.