facebookarchive/inject

There should be a Get function to get dependency.

Opened this issue · 2 comments

dbConn := graph.Get(xorm.Engine)
dbConn := graph.Get(`DB 1`)
dbConn := xorm.Engine{}
graph.Get(&dbConn)

I have created this pull request #21 that addresses this issue

Created this repo https://github.com/imaramos/goject with the purpose of extend this libary due to the lack of maintainance, it has the Resolve method that should address your issue. This is the only feature added, the rest is only renaming, hope another developers could contribute for it.