gphone

package module
v0.0.0-...-7e4d572 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 6 Imported by: 0

README

gphone

golang phone number parser.

Documentation

Index

Constants

View Source
const (
	CountryCodeJP = "81"
	CountryCodeUS = ""
	CountryCodeXX = ""
	CountryCodeYY = ""
	CountryCodeZZ = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Country

type Country struct {
	Name string
	Code string
}

type PhoneNumber

type PhoneNumber struct {
	// contains filtered or unexported fields
}

func New

func New(number string) (*PhoneNumber, error)

func (*PhoneNumber) GetCountry

func (ph *PhoneNumber) GetCountry() *Country

func (*PhoneNumber) GetI18nNumber

func (ph *PhoneNumber) GetI18nNumber(countryCode string) string

func (*PhoneNumber) Value

func (ph *PhoneNumber) Value() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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