Skip to content

Commit 809fcc8

Browse files
committed
Formatted the code
Signed-off-by: Alwin Doss <[email protected]>
1 parent 0c3f3cd commit 809fcc8

File tree

1 file changed

+62
-62
lines changed

1 file changed

+62
-62
lines changed

constants.go

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -2,68 +2,68 @@ package morse
22

33
// alphaNumToMorse is a mapping of Alpha numeric characters to Morse code
44
var alphaNumToMorse = map[string]string{
5-
"A": ".-",
6-
"B": "-...",
7-
"C": "-.-.",
8-
"D": "-..",
9-
"E": ".",
10-
"F": "..-.",
11-
"G": "--.",
12-
"H": "....",
13-
"I": "..",
14-
"J": ".---",
15-
"K": "-.-",
16-
"L": ".-..",
17-
"M": "--",
18-
"N": "-.",
19-
"O": "---",
20-
"P": ".--.",
21-
"Q": "--.-",
22-
"R": ".-.",
23-
"S": "...",
24-
"T": "-",
25-
"U": "..-",
26-
"V": "...-",
27-
"W": ".--",
28-
"X": "-..-",
29-
"Y": "-.--",
30-
"Z": "--..",
31-
"1": ".----",
32-
"2": "..---",
33-
"3": "...--",
34-
"4": "....-",
35-
"5": ".....",
36-
"6": "-....",
37-
"7": "--...",
38-
"8": "---..",
39-
"9": "----.",
40-
"0": "-----",
41-
".": ".-.-.-", // period
42-
":": "---...", // colon
43-
",": "--..--", // comma
44-
";": "-.-.-", // semicolon
45-
"?": "..--..", // question
46-
"=": "-...-", // equals
47-
"'": ".----.", // apostrophe
48-
"/": "-..-.", // slash
49-
"!": "-.-.--", // exclamation
50-
"-": "-....-", // dash
51-
"_": "..--.-", // underline
52-
"\"": ".-..-.", // quotation marks
53-
"(": "-.--.", // parenthesis (open)
54-
")": "-.--.-", // parenthesis (close)
55-
"()": "-.--.-", // parentheses
56-
"$": "...-..-", // dollar
57-
"&": ".-...", // ampersand
58-
"@": ".--.-.", // at
59-
"+": ".-.-.", // plus
60-
"Á": ".--.-", // A with acute accent
61-
"Ä": ".-.-", // A with diaeresis
62-
"É": "..-..", // E with acute accent
63-
"Ñ": "--.--", // N with tilde
64-
"Ö": "---.", // O with diaeresis
65-
"Ü": "..--", // U with diaeresis
66-
" ": ".......", // word interval
5+
"A": ".-",
6+
"B": "-...",
7+
"C": "-.-.",
8+
"D": "-..",
9+
"E": ".",
10+
"F": "..-.",
11+
"G": "--.",
12+
"H": "....",
13+
"I": "..",
14+
"J": ".---",
15+
"K": "-.-",
16+
"L": ".-..",
17+
"M": "--",
18+
"N": "-.",
19+
"O": "---",
20+
"P": ".--.",
21+
"Q": "--.-",
22+
"R": ".-.",
23+
"S": "...",
24+
"T": "-",
25+
"U": "..-",
26+
"V": "...-",
27+
"W": ".--",
28+
"X": "-..-",
29+
"Y": "-.--",
30+
"Z": "--..",
31+
"1": ".----",
32+
"2": "..---",
33+
"3": "...--",
34+
"4": "....-",
35+
"5": ".....",
36+
"6": "-....",
37+
"7": "--...",
38+
"8": "---..",
39+
"9": "----.",
40+
"0": "-----",
41+
".": ".-.-.-", // period
42+
":": "---...", // colon
43+
",": "--..--", // comma
44+
";": "-.-.-", // semicolon
45+
"?": "..--..", // question
46+
"=": "-...-", // equals
47+
"'": ".----.", // apostrophe
48+
"/": "-..-.", // slash
49+
"!": "-.-.--", // exclamation
50+
"-": "-....-", // dash
51+
"_": "..--.-", // underline
52+
"\"": ".-..-.", // quotation marks
53+
"(": "-.--.", // parenthesis (open)
54+
")": "-.--.-", // parenthesis (close)
55+
"()": "-.--.-", // parentheses
56+
"$": "...-..-", // dollar
57+
"&": ".-...", // ampersand
58+
"@": ".--.-.", // at
59+
"+": ".-.-.", // plus
60+
"Á": ".--.-", // A with acute accent
61+
"Ä": ".-.-", // A with diaeresis
62+
"É": "..-..", // E with acute accent
63+
"Ñ": "--.--", // N with tilde
64+
"Ö": "---.", // O with diaeresis
65+
"Ü": "..--", // U with diaeresis
66+
" ": ".......", // word interval
6767
}
6868

6969
// morseToAlphaNum is a mapping of Alpha numeric characters to Morse code

0 commit comments

Comments
 (0)