You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used some other framework that could auto inject with struct tags.
Something like this:
typeBarinterface {
DoSomething()
}
typeFoostruct {
Bar`inject:""`// or we can use named value here `inject:"name"`
}
do.Provide(injector, func() ( Bar, err){...})
f, err:=do.Invoke[Foo]() // f.Bar should be injected automaticallyf.Bar.DoSomething()
The text was updated successfully, but these errors were encountered:
another idea is that might a dsl is a good idea even better than struct tag
1: instead of spreading of all the dependencies around the code base, all the dependencies are defined in a dsl. it's very clear from the point of architecture. ( java ecosystem springboot supports xml configuration)
I used some other framework that could auto inject with struct tags.
Something like this:
The text was updated successfully, but these errors were encountered: