aop
aop copied to clipboard
AfterReturning is only for panic?
callAdvicesFunc(AfterReturning, retValues...) will panic and be recover, so the program can execute successfully. If don't panic, the program will return retValues which is nil.
can you give me a example code ?