Hacker News new | ask | show | jobs
by asdfasdfasjkl 3979 days ago
// VerifyPassword checks if password is valid and upgrades it if its encrypting scheme was outdated // Returns isValid, wasUpdated, error

func (a *Account) VerifyPassword(password string) (bool, bool, error) {

this is why we need sum types people

1 comments

or just named return values

  func (a *Account) VerifyPassword(password string) (isValid, wasUpdated bool, err error) {