func (addr *Address) Address2() string { switch addr.rand.Intn(3) { case 0: return "" default: addr2Prefix := common.Choose(address2Prefixes, addr.rand) return common.Numerify(addr2Prefix, numerifyPattern, addr.rand) } }
func (c *Company) Name() string { switch c.rand.Intn(3) { case 0: return fmt.Sprintf("%s %s", c.namer.LastName(), common.Choose(companySuffixes, c.rand)) case 1: return fmt.Sprint(c.namer.LastName(), "-", c.namer.LastName()) default: return fmt.Sprintf("%s, %s and %s", c.namer.LastName(), c.namer.LastName(), c.namer.LastName()) } }
func (addr *Address) Address1() string { streetName := "" switch addr.rand.Intn(2) { case 0: streetName = addr.namer.LastName() default: streetName = addr.namer.FirstName() } streetNum := common.Numerify("####", numerifyPattern, addr.rand) return fmt.Sprint(streetNum, " ", streetName, " ", common.Choose(streetSuffixes, addr.rand)) }
func (e *Email) Email() string { domainWord := formatDomainWord(e.company.Name()) domainSuffix := common.Choose(domainSuffixes, e.rand) return fmt.Sprintf("%s@%s.%s", e.UserName(), domainWord, domainSuffix) }
func (n *Namer) Suffix() string { return common.Choose(nameSuffixes, n.rand) }
func (n *Namer) Prefix() string { return common.Choose(namePrefixes, n.rand) }
func (n *Namer) LastName() string { return common.Choose(lastNames, n.rand) }
func (n *Namer) FirstName() string { return common.Choose(firstNames, n.rand) }
func (addr *Address) citySuffix() string { return common.Choose(citySuffixes, addr.rand) }
func (addr *Address) ZipCode() string { zipFormat := common.Choose(zipFormats, addr.rand) return common.Numerify(zipFormat, numerifyPattern, addr.rand) }
func (addr *Address) StateAbbr() string { return common.Choose(stateAbbrs, addr.rand) }