Closed Reese1995 closed 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 }
impossible to get variable value, only support intercept function params
variable
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 }