Welcome in his lecture.
You're going to learn about bitts runes and strings in greater detail, by the way, to understand this
lecture better.
I recommend you get to know the basics of how Unicode UTF eight encoding and code point work.
So before starting this lecture, you might want to check out the links in the previous article.
All right, if you're ready, let's get started.
Here is an example, string value, first of all, let me tell you that a street value is a service
of white values.
This means that you can represent a street value as a white slice.
So, for example, H can be represented with one hundred and four, E with one hundred and one and Y
with one hundred twenty one.
So you can convert a street value to about slice or vice versa because a street value is a slice and
a wide slice can be encoded to a street value.
So they are interchangeable convertible between each other instead of a number.
You can also represent a character using a room literal like so.
After all, numbers and room literals are the same thing as you can see.
Simply put, a Unicode code point is a number that can represent a character engo.
Instead of saying code points, we simply say runes.
So in go a room can represent a Unicode code point or a simple character.
A rule literal is a timeless integer, literal, so irungu literal can be of any integer type, like
a white room in 64 and so on, because it's a type less constant.
However, not that the room concept room type and room literal are different things we call code points
as rules and it's just a concept.
However, in practice we use room literals and integer types such as bytes and rules to represent the
characters.
So Aroon is a code point that is represented by an integer value.
Let's quickly talk about some number system basics.
Then I'm going to show you how to build a character set program.
OK, one hundred and four is a decimal number, so its base is ten.
It's the most popular numeric system.
We use it everyday.
However, computers work with binary data, so rules can also be represented using other numbers systems.
For example, this is what the same room looks like in binary.
These zeros and ones are equal to one hundred and four.
This binary number is just a different representation of one hundred and four.
When a number starts with the zero B prefix, Go thinks that it's a binary number.
This is a new binary literal notation.
By the way, you can only use this if you are using go 113 aníbal.
OK, hexadecimal means sixteen, so each hex digits can represent a number between zero and fifteen.
With hexadecimal numbers, it becomes much easier to represent larger code points with fewer digits.
When a number starts with the zero X prefix, Go thinks that it's hexadecimal number.
So six to eight in hexadecimal is equal to one hundred and four in decimal.
Now we know how to represent the rules in different numeric systems.
This will become important when working with them.
All right.
That's all for now.
See in the next lecture by.