Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 605 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 605 Bytes

amka-rs

CI

A validator for greek social security number (AMKA)

Usage

Add amka under [dependencies] in your Cargo.toml:

[dependencies]
amka = "1.1.0"

Use the validator:

use amka;

// An invalid AMKA
let (is_valid, err) = amka::validate("09095986680");
assert!(!is_valid);
println!("{}", err);

// An valid AMKA
let (is_valid, err) = amka::validate("09095986684");
assert!(is_valid);
assert_eq!("", err)