Basic latin in Go
This is the first block of Unicode standard which is encoded in one byte (UTF-8). All letters and control codes are part of the ASCII encoding.
Basic latin example
In Golang these Unicode can be used using the print format (printf
) of the fmt
package. The example below illustrates how to print the basic latin Unicode character:
unicode_decimal := 33
fmt.Printf("Character: %c\n",unicode_decimal) // !
fmt.Printf("Quoted character: %q\n",unicode_decimal) // '!'
fmt.Printf("Unicode: %U\n",unicode_decimal) // U+0021
fmt.Printf("Unicode with character: %#U\n",unicode_decimal) // U+0021 '!'
Basic latin table
Decimal | Name | Appearance |
32 | SPACE | |
33 | EXCLAMATION MARK | ! |
34 | QUOTATION MARK | “ |
35 | NUMBER SIGN | # |
36 | DOLLAR SIGN | $ |
37 | PERCENT SIGN | % |
38 | AMPERSAND | & |
39 | APOSTROPHE | ‘ |
40 | LEFT PARENTHESIS | ( |
41 | RIGHT PARENTHESIS | ) |
42 | ASTERISK | * |
43 | PLUS SIGN | + |
44 | COMMA | , |
45 | HYPHEN-MINUS | – |
46 | FULL STOP | . |
47 | SOLIDUS | / |
48 | DIGIT ZERO | 0 |
49 | DIGIT ONE | 1 |
50 | DIGIT TWO | 2 |
51 | DIGIT THREE | 3 |
52 | DIGIT FOUR | 4 |
53 | DIGIT FIVE | 5 |
54 | DIGIT SIX | 6 |
55 | DIGIT SEVEN | 7 |
56 | DIGIT EIGHT | 8 |
57 | DIGIT NINE | 9 |
58 | COLON | : |
59 | SEMICOLON | ; |
60 | LESS-THAN SIGN | < |
61 | EQUALS SIGN | = |
62 | GREATER-THAN SIGN | > |
63 | QUESTION MARK | ? |
64 | COMMERCIAL AT | @ |
65 | LATIN CAPITAL LETTER A | A |
66 | LATIN CAPITAL LETTER B | B |
67 | LATIN CAPITAL LETTER C | C |
68 | LATIN CAPITAL LETTER D | D |
69 | LATIN CAPITAL LETTER E | E |
70 | LATIN CAPITAL LETTER F | F |
71 | LATIN CAPITAL LETTER G | G |
72 | LATIN CAPITAL LETTER H | H |
73 | LATIN CAPITAL LETTER I | I |
74 | LATIN CAPITAL LETTER J | J |
75 | LATIN CAPITAL LETTER K | K |
76 | LATIN CAPITAL LETTER L | L |
77 | LATIN CAPITAL LETTER M | M |
78 | LATIN CAPITAL LETTER N | N |
79 | LATIN CAPITAL LETTER O | O |
80 | LATIN CAPITAL LETTER P | P |
81 | LATIN CAPITAL LETTER Q | Q |
82 | LATIN CAPITAL LETTER R | R |
83 | LATIN CAPITAL LETTER S | S |
84 | LATIN CAPITAL LETTER T | T |
85 | LATIN CAPITAL LETTER U | U |
86 | LATIN CAPITAL LETTER V | V |
87 | LATIN CAPITAL LETTER W | W |
88 | LATIN CAPITAL LETTER X | X |
89 | LATIN CAPITAL LETTER Y | Y |
90 | LATIN CAPITAL LETTER Z | Z |
91 | LEFT SQUARE BRACKET | [ |
92 | REVERSE SOLIDUS | \ |
93 | RIGHT SQUARE BRACKET | ] |
94 | CIRCUMFLEX ACCENT | ^ |
95 | LOW LINE | _ |
96 | GRAVE ACCENT | ` |
97 | LATIN SMALL LETTER A | a |
98 | LATIN SMALL LETTER B | b |
99 | LATIN SMALL LETTER C | c |
100 | LATIN SMALL LETTER D | d |
101 | LATIN SMALL LETTER E | e |
102 | LATIN SMALL LETTER F | f |
103 | LATIN SMALL LETTER G | g |
104 | LATIN SMALL LETTER H | h |
105 | LATIN SMALL LETTER I | i |
106 | LATIN SMALL LETTER J | j |
107 | LATIN SMALL LETTER K | k |
108 | LATIN SMALL LETTER L | l |
109 | LATIN SMALL LETTER M | m |
110 | LATIN SMALL LETTER N | n |
111 | LATIN SMALL LETTER O | o |
112 | LATIN SMALL LETTER P | p |
113 | LATIN SMALL LETTER Q | q |
114 | LATIN SMALL LETTER R | r |
115 | LATIN SMALL LETTER S | s |
116 | LATIN SMALL LETTER T | t |
117 | LATIN SMALL LETTER U | u |
118 | LATIN SMALL LETTER V | v |
119 | LATIN SMALL LETTER W | w |
120 | LATIN SMALL LETTER X | x |
121 | LATIN SMALL LETTER Y | y |
122 | LATIN SMALL LETTER Z | z |
123 | LEFT CURLY BRACKET | { |
124 | VERTICAL LINE | | |
125 | RIGHT CURLY BRACKET | } |
126 | TILDE | ~ |
127 | <control>: DELETE |
Source code: GoDevTips repository
Follow us: