mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Implemented artists indexing, with Gomate
This commit is contained in:
parent
7c75084249
commit
df957814a0
9 changed files with 79 additions and 26 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue