func (u *User) Check(v *validation.Validation) { if u.Name == "toukii" && u.Passwd == "1234" { v.Clear() } else { v.SetError("login", "user is abnormal.") } }