Documentation ¶
Index ¶
- Variables
- func CalculateAge(birthdate, today time.Time) int
- func CheckPasswordHash(password string, hash string) bool
- func DecodeString(str string) string
- func EncodeString(str string) string
- func GeneratePassword() string
- func GenerateRegNo(index int) string
- func HashPassword(password string) (string, error)
- func IsPhone(phone string) bool
- func NumberGenerator(max int) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KEY string = "authenticated" USERID string = "user_id" NAME string = "user_name" CENTRE string = "centre" )
Functions ¶
func CalculateAge ¶
func CheckPasswordHash ¶
func DecodeString ¶
func EncodeString ¶
func GeneratePassword ¶
func GeneratePassword() string
func GenerateRegNo ¶
func HashPassword ¶
func NumberGenerator ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.