idvalidator

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2021 License: MIT

README

Iran IDValidator

Go Report Card Go Reference codecov

Iran National Id, Bank Card Number, Mobile Number Validator for golang

Installation
go get -u github.com/mohammadv184/idvalidator
Usage
package main

import (
	"fmt"
	
	"github.com/mohammadv184/idvalidator/validate/nationalid"
	
	"github.com/mohammadv184/idvalidator/validate/card"
)

func main() {
	ok, err := card.IsValid("1234567890123456")
	if !ok {
		fmt.Println(err)
	}

	ok, err = nationalid.IsValid("1234567890123456")
	if !ok {
		fmt.Println(err)
	}

}

License

The MIT License (MIT). Please see License File for more information.

Directories

Path Synopsis
validate

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL