Documentation ¶
Overview ¶
Package di provides a reflection based dependency injection toolkit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Closer ¶ added in v0.0.2
type Closer interface {
Close() error
}
Closer is the interface that wraps the basic Close method.
type Injector ¶
type Injector struct {
// contains filtered or unexported fields
}
Injector represents a dependency injector.
func (*Injector) MustProvide ¶
MustProvide is like Provide but panics if has error.
Click to show internal directories.
Click to hide internal directories.