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

DecimalNameAppearance
32SPACE
33EXCLAMATION MARK!
34QUOTATION MARK
35NUMBER SIGN#
36DOLLAR SIGN$
37PERCENT SIGN%
38AMPERSAND&
39APOSTROPHE
40LEFT PARENTHESIS(
41RIGHT PARENTHESIS)
42ASTERISK*
43PLUS SIGN+
44COMMA,
45HYPHEN-MINUS
46FULL STOP.
47SOLIDUS/
48DIGIT ZERO0
49DIGIT ONE1
50DIGIT TWO2
51DIGIT THREE3
52DIGIT FOUR4
53DIGIT FIVE5
54DIGIT SIX6
55DIGIT SEVEN7
56DIGIT EIGHT8
57DIGIT NINE9
58COLON:
59SEMICOLON;
60LESS-THAN SIGN<
61EQUALS SIGN=
62GREATER-THAN SIGN>
63QUESTION MARK?
64COMMERCIAL AT@
65LATIN CAPITAL LETTER AA
66LATIN CAPITAL LETTER BB
67LATIN CAPITAL LETTER CC
68LATIN CAPITAL LETTER DD
69LATIN CAPITAL LETTER EE
70LATIN CAPITAL LETTER FF
71LATIN CAPITAL LETTER GG
72LATIN CAPITAL LETTER HH
73LATIN CAPITAL LETTER II
74LATIN CAPITAL LETTER JJ
75LATIN CAPITAL LETTER KK
76LATIN CAPITAL LETTER LL
77LATIN CAPITAL LETTER MM
78LATIN CAPITAL LETTER NN
79LATIN CAPITAL LETTER OO
80LATIN CAPITAL LETTER PP
81LATIN CAPITAL LETTER QQ
82LATIN CAPITAL LETTER RR
83LATIN CAPITAL LETTER SS
84LATIN CAPITAL LETTER TT
85LATIN CAPITAL LETTER UU
86LATIN CAPITAL LETTER VV
87LATIN CAPITAL LETTER WW
88LATIN CAPITAL LETTER XX
89LATIN CAPITAL LETTER YY
90LATIN CAPITAL LETTER ZZ
91LEFT SQUARE BRACKET[
92REVERSE SOLIDUS\
93RIGHT SQUARE BRACKET]
94CIRCUMFLEX ACCENT^
95LOW LINE_
96GRAVE ACCENT`
97LATIN SMALL LETTER Aa
98LATIN SMALL LETTER Bb
99LATIN SMALL LETTER Cc
100LATIN SMALL LETTER Dd
101LATIN SMALL LETTER Ee
102LATIN SMALL LETTER Ff
103LATIN SMALL LETTER Gg
104LATIN SMALL LETTER Hh
105LATIN SMALL LETTER Ii
106LATIN SMALL LETTER Jj
107LATIN SMALL LETTER Kk
108LATIN SMALL LETTER Ll
109LATIN SMALL LETTER Mm
110LATIN SMALL LETTER Nn
111LATIN SMALL LETTER Oo
112LATIN SMALL LETTER Pp
113LATIN SMALL LETTER Qq
114LATIN SMALL LETTER Rr
115LATIN SMALL LETTER Ss
116LATIN SMALL LETTER Tt
117LATIN SMALL LETTER Uu
118LATIN SMALL LETTER Vv
119LATIN SMALL LETTER Ww
120LATIN SMALL LETTER Xx
121LATIN SMALL LETTER Yy
122LATIN SMALL LETTER Zz
123LEFT CURLY BRACKET{
124VERTICAL LINE|
125RIGHT CURLY BRACKET}
126TILDE~
127<control>: DELETE

Source code: GoDevTips repository

Follow us:

Leave a Reply

Your email address will not be published. Required fields are marked *