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
Hi @frankiezdh, wire.FieldsOf(new(*Cfg), "Field1", "Field2") provides two return values, it would be really helpful if you could give an example code snippet of how you have used the return values.
Be warned that if any type is previously injected or if types aren't unique, then it will complain. It still works as intended originally if passing the fieldnames
Is your feature request related to a problem? Please describe.
A struct which is read from configuration file provide all its fields.
The sulotion now is
wire.FieldsOf(new(*Cfg), "Field1", "Field2")
Describe the solution you'd like
wire.FieldsOf support any field, like
wire.FieldsOf(new(*Cfg), "*")
Describe alternatives you've considered
The sulotion now is
wire.FieldsOf(new(*Cfg), "Field1", "Field2")
Additional context
The text was updated successfully, but these errors were encountered: