From d8ef8e226a21e96cef3f40b9c9c24f71053a6f64 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Sun, 21 Nov 2021 06:12:56 -0800 Subject: [PATCH] phone number, plus other changes --- t_phonenumber_canada.go | 58 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/t_phonenumber_canada.go b/t_phonenumber_canada.go index 3bfce4e..4f27d9e 100644 --- a/t_phonenumber_canada.go +++ b/t_phonenumber_canada.go @@ -9,11 +9,67 @@ func (arb T) phonenumber_canada() string { var areacode string { var areacodes []string = []string{ + // alberta + "403", + "780", + "587", + "825", + "368", + + // british columnbia "604", "250", "778", "236", "672", + + // manitoba + "204", + "413", + + // new brunswick + "506", + + // newfoundland and labrador + "709", + + // nova scotia and prince edward island + "782", + "902", + + // ontario + "226", + "249", + "289", + "343", + "365", + "416", + "437", + "519", + "548", + "613", + "647", + "705", + "807", + "905", + + // quebec + "367", + "418", + "581", + "438", + "450", + "514", + "613", + "581", + "819", + + // saskatchewan + "306", + "639", + + // yukon, northwest territories and nunavut + "867", } areacode = areacodes[arb.randomness.Intn(len(areacodes))] @@ -53,7 +109,7 @@ func (arb T) phonenumber_canada() string { var result string { - fmt.Sprintf(format, areacode, localpart1, localpart2) + result = fmt.Sprintf(format, areacode, localpart1, localpart2) } return result