go-zero
go-zero copied to clipboard
Does go-zero have a package implementation of the hook function?
For what kind of hook?
I would like to add the execution function either before or after the execution business function, if this package is not currently available, I can submit a pr in the util package and let you see if it fits. Thank you for your reply on New Year's Eve and I wish you a happy new year.
You can use middleware to achieve this.
Middleware acts before and after logic, but I don't really want that. Because I have the flexibility to add hooks to other functions when I call them from within the logic
You can wrap the func with a closure.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.