Closed aphsa closed 10 months ago
How to pass structs as inputs for those services. We only have ProvideNamedValues which allows only strings
Hi @aphsa
The string given to do.ProvideNamedValue is the service name.
do.ProvideNamedValue
You can also let the framework infer the name from service type by using do.Provide[*MyService](injector, &myService)
do.Provide[*MyService](injector, &myService)
How to pass structs as inputs for those services. We only have ProvideNamedValues which allows only strings