Documentation ¶
Index ¶
- func CamelToSnake(s string) string
- func CheckPasswordHash(password, hashedPassword string) bool
- func Contains(slice []string, item string) bool
- func FileChecksum(filepath string) (string, error)
- func FileExists(filepath string) bool
- func FormatDate(input string) string
- func GenerateID(length ...int) string
- func GenerateOTP() string
- func GetNow() string
- func HashPassword(password string) (string, error)
- func HumanReadableSize(size int64) string
- func IsStrongPassword(password string) bool
- func IsValidCreditCard(card string) bool
- func IsValidEmail(email string) bool
- func IsValidHexColor(color string) bool
- func IsValidIPAddress(ip string) bool
- func IsValidURL(url string) bool
- func ParseDate(input string) (time.Time, error)
- func SanitizeInput(input string) string
- func Slugify(text string) string
- func VerifyPhoneNumber(phone string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelToSnake ¶
func CheckPasswordHash ¶
func FileChecksum ¶
func FileExists ¶
func FormatDate ¶
Ensure that single-digit day and month are zero-padded
func GenerateID ¶
func GenerateOTP ¶
func GenerateOTP() string
func HashPassword ¶
func HumanReadableSize ¶
func IsStrongPassword ¶
func IsValidCreditCard ¶
func IsValidEmail ¶
IsValidEmail validates an email address using a regex pattern
func IsValidHexColor ¶
func IsValidIPAddress ¶
func IsValidURL ¶
func SanitizeInput ¶
func VerifyPhoneNumber ¶
VerifyPhoneNumber checks if the phone number is in the format +917569236628
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.