Crate dator

Source
Expand description

Validate different data types.

This library is realy simple: give a &str as an argument and return a bool.

§Example

if dator::domain("example.com") {
    // valid domain
}

Functions§

domain
Checks whether the given string is a valid domain.
email
Checks whether the given string is a valid email.
ip
Checks whether the given string is a valid IP address.
ipv4
Checks whether the given string is a valid IPv4 address.
ipv6
Checks whether the given string is a valid IPv6 address.