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

生成的代码能不能采用wire 来进行依赖注入呀 #214

Open
coders-lemon opened this issue Aug 15, 2024 · 2 comments
Open

生成的代码能不能采用wire 来进行依赖注入呀 #214

coders-lemon opened this issue Aug 15, 2024 · 2 comments

Comments

@coders-lemon
Copy link

我看cwgo生产的代码目前还是采用全局变量的方式提供给其他模块调用,后续会不会考虑采用 wire 的方式进行依赖注入?如果默认不提供的话后续是否会考虑通过插件的方式实现?

@li-jin-gou
Copy link
Member

参考文档,自己搞一个自定义模版即可 @coders-lemon

@li-jin-gou
Copy link
Member

我们研究下怎么搞个 wire 的模版

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

No branches or pull requests

2 participants