Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! 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
//! }
//! ```

mod domain;
mod ip;
mod mail;
pub use self::domain::domain;
pub use self::ip::{ip, ipv4, ipv6};
pub use self::mail::email;