Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add defines a transient service of type T to be included in the DI context. When a service is registered using Add, it will create a new instance every time. If you specify a nil value as the injector instance, it will use the default, global one.
func AddSingleton ¶
AddSingleton defines a singleton service of type T to be included in the DI context. When a service is registered using AddSingleton, it will return the same instance every time. If you specify a nil value as the injector instance, it will use the default, global one.
Types ¶
Click to show internal directories.
Click to hide internal directories.