gogap / aop

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

Is there any way to get return value of Login method? #4

Closed Reese1995 closed 4 years ago

Reese1995 commented 4 years ago

how can i get the return value of Login method by AOP

func (p *Auth) Login(userName, password string) bool { if userName == "zeal" && password == "gogap" { return true, } return false }

xujinzheng commented 4 years ago

impossible to get variable value, only support intercept function params