this is a simple package just to check phone number input to be sure that the number is correct or not.
go get github.com/miraddo/phonechecker
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
}