Open tudoutiaoya opened 1 year ago
Hey @tudoutiaoya, could you show me your wire_gen.go
? It seems like your IDE is using that for its analysis.
remove wire plugin from ide, it's useless and cause IDE error
Firstly, add wireinject
to your custom tags. Next, run go get github.com/google/wire
. Once this is done, Jetbrains Goland will analyze your code success.
here, I used four struct, and I define a init function in my wire.go , but the question is I can't use it in my main.go