package
0.0.0-20250114121603-d48290bd2846
Repository: https://github.com/quanganh247-qa/common.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

CheckPassword checks if provided password is correct or not.
No description provided by the author
No description provided by the author
DefaultPasswordConfig returns a default secure password configuration.
No description provided by the author
No description provided by the author
GeneratePassword generates a random password based on the provided configuration.
No description provided by the author
No description provided by the author
No description provided by the author
HashPassword return the bcrypt of hash password.
Helper function to convert pgtype.Interval to string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RandomEmail generates a random email.
RandomInt generates a random integer between min and max.
RandomMoney generates a random amount of money.
RandomOwner generates a random owner name.
RandomString generates a random string of length n.
Recover returns a Gin middleware for handling panics during request processing.
No description provided by the author
Slugify converts a string to a slug format suitable for URLs.
StringToInterval converts a string duration (like "00:30:00") to a pgtype.Interval.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PasswordConfig defines the rules for password generation.
RecoveryResponse represents the structure of the error response.