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
@OutUniverse I faced a similar problem. Wire showed a similar uninformative error. It turned out that the problem was caused by a cyclic import. I see it in your example too. services package imports inpack in a.go and inpack imports services in b.go.
The a.go could not injector the b.go interface, but the d.go is ok.
The directory struct like this:
services
- a.go
- c.go
inpack
- b.go
testinpack
- d.go
Here is the code:
a.go:
c.go:
b.go:
d.go:
The text was updated successfully, but these errors were encountered: