phonenumber

package
v0.0.0-...-facbdb1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakePhone

type FakePhone struct {
	PhoneNumber struct {
		Formats []string
	} `yaml:"phone_number,flow"`
	CellPhone struct {
		Formats []string
	} `yaml:"cell_phone,flow"`
	AreaCodes     []string `yaml:"area_code,flow"`
	ExchangeCodes []string `yaml:"exchange_code,flow"`
	CountryCodes  []string `yaml:"country_code,flow"`
	LadaDoses     []string `yaml:"lada_dos,flow"`
	LadaTress     []string `yaml:"lada_tres,flow"`
}

FakePhone a random phone

func (*FakePhone) AreaCode

func (p *FakePhone) AreaCode() string

AreaCode random AreaCode US and Canada only

func (*FakePhone) CountryCode

func (p *FakePhone) CountryCode() string

CountryCode random CountryCode

func (*FakePhone) ExchangeCode

func (p *FakePhone) ExchangeCode() string

ExchangeCode random ExchangeCode US and Canada only

func (*FakePhone) Extension

func (p *FakePhone) Extension() string

Extension alias of SubscriberNumber

func (*FakePhone) FixedSubscriberNumber

func (p *FakePhone) FixedSubscriberNumber(l uint) string

FixedSubscriberNumber random number with fixed length US and Canada only Can be used for both extensions and last four digits of phone number. Since extensions can be of variable length, this method takes a length parameter

func (*FakePhone) LadaDos

func (p *FakePhone) LadaDos() string

LadaDos random lada_dos only for es-MX

func (*FakePhone) LadaTres

func (p *FakePhone) LadaTres() string

LadaTres random lada_tres only for es-MX

func (*FakePhone) RandomCellPhone

func (p *FakePhone) RandomCellPhone() string

RandomCellPhone return random format cell number

func (*FakePhone) RandomPhoneNumber

func (p *FakePhone) RandomPhoneNumber() string

RandomPhoneNumber return random format phone number

func (*FakePhone) SubscriberNumber

func (p *FakePhone) SubscriberNumber() string

SubscriberNumber random 4bit number US and Canada only Can be used for both extensions and last four digits of phone number. Since extensions can be of variable length, this method takes a length parameter

Jump to

Keyboard shortcuts

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