Gozz - Tool use Annotations to Generate Wire Sets and AOP static proxy #395
Just-maple
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Gozz is a golang annotation analysis based strong and extensible code generation and template-programming toolkits.
One of this project functions is that providing autowire DI and AOP proxy code generation based on
wire
.Then we do not need to maintain wire sets declarations anymore, just add annotations on your code object.
There is a example of
gozz
:And it would generate
wire_zset.go
andwire_zinject.go
and also
wire_gen.go
Also with option
aop
, it can generate AOP static proxy and replace wire provider bindings automatically.then generate sets declarations:
The AOP proxy declare in
wire_zzaop.go
:And developers could do these awesome things through Intercept:
Some Useful Cases
If you think this tool is awesome also, you could checkout github address and documentation
Beta Was this translation helpful? Give feedback.
All reactions