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, I expect this to be a simple problem to solve.
I have two structs, one Controller and one Dependency, and a factory for each struct. Each factory function takes a single string as a parameter. I'm trying to initialise the first struct with the second struct as a dependency, both of which require a string.
I am new to this library and I don't know how wire is working under the hood. Wouldn't Wire see two strings, reflect on NewDependency, inject the first one, and then the second with NewController?
What do I need to do to achieve what I require?
The text was updated successfully, but these errors were encountered:
Hi, I expect this to be a simple problem to solve.
I have two structs, one
Controller
and oneDependency
, and a factory for each struct. Each factory function takes a single string as a parameter. I'm trying to initialise the first struct with the second struct as a dependency, both of which require a string.Here's my
wire.go
.I am new to this library and I don't know how wire is working under the hood. Wouldn't Wire see two strings, reflect on
NewDependency
, inject the first one, and then the second withNewController
?What do I need to do to achieve what I require?
The text was updated successfully, but these errors were encountered: