Documentation ¶
Index ¶
- type FakePhone
- func (p *FakePhone) AreaCode() string
- func (p *FakePhone) CountryCode() string
- func (p *FakePhone) ExchangeCode() string
- func (p *FakePhone) Extension() string
- func (p *FakePhone) FixedSubscriberNumber(l uint) string
- func (p *FakePhone) LadaDos() string
- func (p *FakePhone) LadaTres() string
- func (p *FakePhone) RandomCellPhone() string
- func (p *FakePhone) RandomPhoneNumber() string
- func (p *FakePhone) SubscriberNumber() string
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) CountryCode ¶
CountryCode random CountryCode
func (*FakePhone) ExchangeCode ¶
ExchangeCode random ExchangeCode US and Canada only
func (*FakePhone) FixedSubscriberNumber ¶
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) RandomCellPhone ¶
RandomCellPhone return random format cell number
func (*FakePhone) RandomPhoneNumber ¶
RandomPhoneNumber return random format phone number
func (*FakePhone) SubscriberNumber ¶
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