go-arbitrary/t_phonenumber.go

14 lines
244 B
Go
Raw Normal View History

2021-11-21 01:46:15 +00:00
package arbitrary
// PhoneNumber returns an arbitrary phonenumber.
func (arb T) PhoneNumber() string {
2021-11-21 16:27:42 +00:00
var funcs []func()string = []func()string{
arb.phonenumber_canada,
}
fn := funcs[arb.randomness.Intn(len(funcs))]
return fn()
2021-11-21 01:46:15 +00:00
}