Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't use the init function which from my wire.go in my main.go #378

Open
tudoutiaoya opened this issue Jan 20, 2023 · 3 comments
Open

Comments

@tudoutiaoya
Copy link

image
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

@geret13
Copy link

geret13 commented Feb 9, 2023

Hey @tudoutiaoya, could you show me your wire_gen.go? It seems like your IDE is using that for its analysis.

@shuqingzai
Copy link

remove wire plugin from ide, it's useless and cause IDE error

@lupguo
Copy link

lupguo commented Jun 27, 2023

image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants