go-arbitrary/t_phonenumber.go

14 lines
244 B
Go
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package arbitrary
// PhoneNumber returns an arbitrary phonenumber.
func (arb T) PhoneNumber() string {
var funcs []func()string = []func()string{
arb.phonenumber_canada,
}
fn := funcs[arb.randomness.Intn(len(funcs))]
return fn()
}