Versions in this module Expand all Collapse all v12 v12.1.9 Aug 12, 2022 Changes in this version + func GeneratePassword(userPassword string) ([]byte, error) + func ValidatePassword(userPassword string, hashed []byte) (bool, error) + type User struct + CreatedAt time.Time + Firstname string + HashedPassword []byte + ID int64 + Username string + func (u User) IsValid() bool