Documentation
¶
Index ¶
- func IsASCII(s string) bool
- func IsAlnum(s string) bool
- func IsAlpha(s string) bool
- func IsCreditCard(s string) bool
- func IsEmail(s string) bool
- func IsHex(s string) bool
- func IsIP(s string) bool
- func IsLower(s string) bool
- func IsNumeric(s string) bool
- func IsPhone(s string) bool
- func IsPrintable(s string) bool
- func IsURL(s string) bool
- func IsUUID(s string) bool
- func IsUpper(s string) bool
- func ToFloat64(v any) (float64, bool)
- func ToInt(v any) (int, bool)
- func ToString(v any) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCreditCard ¶
IsCreditCard returns true if s looks like a credit card number (Luhn check, 13-19 digits).
func IsPhone ¶
IsPhone returns true if s looks like a phone number (simple, digits, optional +, -, spaces).
func IsPrintable ¶
IsPrintable returns true if all runes in s are printable.
func ToFloat64 ¶
ToFloat64 tries to convert any value to a float64. Returns (value, true) if successful.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.