Documentation
¶
Overview ¶
Package validationutils provides essential validation utilities. Because users will always find a way to break your input validation
Index ¶
- func InRange(value, minVal, maxVal float64) bool
- func IsAlpha(s string) bool
- func IsColor(color string) bool
- func IsDate(dateStr string) bool
- func IsDateTime(datetimeStr string) bool
- func IsEmail(email string) bool
- func IsFloat(s string) bool
- func IsISBN(isbn string) bool
- func IsLatitude(lat string) bool
- func IsLongitude(lng string) bool
- func IsNumeric(s string) bool
- func IsPostalCode(code, country string) bool
- func IsStrongPassword(password string) bool
- func IsTime(timeStr string) bool
- func IsURL(urlStr string) bool
- func IsZipCode(zip string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDateTime ¶
IsDateTime validates if a string is in a valid datetime format (YYYY-MM-DD HH:MM:SS).
func IsLatitude ¶
IsLatitude validates if a string is a valid latitude.
func IsLongitude ¶
IsLongitude validates if a string is a valid longitude.
func IsPostalCode ¶
IsPostalCode validates if a string is a valid postal code for various countries.
func IsStrongPassword ¶
IsStrongPassword checks basic password strength. Minimum requirements because apparently "password123" isn't secure
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.