/phonechecker

Simple Checking Phone numbers

Primary LanguageGo

Checking Phone Numbers

this is a simple package just to check phone number input to be sure that the number is correct or not.

Installation

go get github.com/miraddo/phonechecker

Using

package main

import (
	"fmt"

	"github.com/miraddo/phonechecker"
)

func main() {
	input := "+989372222222"

	fmt.Println(phonechecker.Iran(input)) // true

	input2 := "+9893722222222"

	fmt.Println(phonechecker.Iran(input2)) // false

}