Documentation
¶
Index ¶
- func CreditCard(number int) bool
- func Domain(domain string) bool
- func Ipv4(ipv4Addr string) bool
- func Ipv4Cidr(ipv4AddrCidr string) bool
- func Ipv6(ipv6Addr string) bool
- func Ipv6Cidr(ipv6AddrCidr string) bool
- func Luhn(number int) bool
- func LuhnCheckDigit(number int) int
- func Mac(macAddr string) bool
- func Md5(md5 string) bool
- func Port(port int) bool
- func Sha1(sha1 string) bool
- func Sha224(sha224 string) bool
- func Sha256(sha256 string) bool
- func Sha512(sha512 string) bool
- func Url(url string) bool
- func Uuid(uuid string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreditCard ¶ added in v0.1.6
CreditCard validate credit card number with Luhn
func Luhn ¶ added in v0.1.6
Luhn checks if the given integer is valid according to the Luhn algorithm
func LuhnCheckDigit ¶ added in v0.1.6
LuhnCheckDigit calculates the check digit for a given number using the Luhn algorithm
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.