这是indexloc提供的服务,不要输入任何密码
Skip to content

Miraddo/phonechecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

}

About

Simple Checking Phone numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages