Documentation ¶
Overview ¶
wrapper for dependency injection using dig
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Invoke ¶
func Invoke(fn interface{}, opts ...dig.InvokeOption) error
Invoke function using DI Container
func Provide ¶
func Provide(constructor interface{}, opts ...dig.ProvideOption) interface{}
Provide constructor function to DI Container The recommendation is to provide constructor in the same file with the definition. Here is a example:
var _ = di.Provide(YourContructor) func YourContructor() { // ... }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.