Пример #1
0
// NewMultiInjector create new multi injection instance
func NewMultiInjector(injectors []app.Injector) app.Injector {
	return app.Injector(MultiInjector{
		injectors: injectors,
	})
}
Пример #2
0
// NewMapInjector create new map injector instance
func NewMapInjector(tagname string, data map[string]interface{}) app.Injector {
	return app.Injector(MapInjector{
		tagname: tagname,
		data:    data,
	})
}
Пример #3
0
// NewInjector create new map string conversion injector instance
func NewInjector(tagname string) app.Injector {
	return app.Injector(Injector{
		tagname: tagname,
	})
}