Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidCharactersInPhoneNumber = errors.New("invalid character")
View Source
var ErrUnsupportableFormat = errors.New("phone number format is unsupportable")
Functions ¶
This section is empty.
Types ¶
type PhoneNumber ¶
type PhoneNumber uint64
func Parse ¶
func Parse(number string) (PhoneNumber, error)
func (PhoneNumber) CountyCode ¶
func (p PhoneNumber) CountyCode() byte
func (PhoneNumber) Local ¶
func (p PhoneNumber) Local() uint32
func (PhoneNumber) Operator ¶
func (p PhoneNumber) Operator() uint16
func (PhoneNumber) String ¶
func (p PhoneNumber) String() string
Click to show internal directories.
Click to hide internal directories.