Implemented artists indexing, with Gomate

This commit is contained in:
Deluan 2016-03-10 23:19:13 -05:00
parent 7c75084249
commit df957814a0
9 changed files with 79 additions and 26 deletions

View file

@ -25,6 +25,10 @@ func DefineSingleton(ptr interface{}, constructor interface{}) interface{} {
return ptr
}
func ResolveDependency(ptr interface{}) {
inject.ExtractAssignable(Graph, ptr)
}
func init() {
definitions = make(map[reflect.Type]interface{})
Graph = inject.NewGraph()