Skip to content

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

License

Notifications You must be signed in to change notification settings

mohammadv184/idvalidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages