Documentation ¶
Overview ¶
Package dependency manages
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FileSystem fs.FS
FileSystem file system used to get embedded files
Functions ¶
This section is empty.
Types ¶
type Injector ¶
type Injector interface { // Inject takes any data type and fill of required dependencies (dependency injection) Inject(interface{}) error }
Injector defines a dependency injector
func NewInjector ¶
NewInjector is an abstract factory to Injector, it builds a instance of Injector interface based on the Profile based as parameter
Supported profiles: Default
If pass a parameter an invalid profile it panics
type InjectorFunc ¶
type InjectorFunc func(interface{}) error
InjectorFunc function that implements the Injector interface
func (InjectorFunc) Inject ¶
func (f InjectorFunc) Inject(i interface{}) error
Click to show internal directories.
Click to hide internal directories.