gogap / aop

Aspect Oriented Programming For Golang
Apache License 2.0
384 stars 51 forks source link

AfterReturning is only for panic? #6

Open xiaoqin16 opened 3 years ago

xiaoqin16 commented 3 years ago

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.

xujinzheng commented 3 years ago

can you give me a example code ?