

We can see that each of the bytes that makes up that string is a rune. We try to convert a string to a stream of bytes. (Note: UTF-8 is a 4-byte encoding scheme)Ī string is a collection of runes. It is a number with 32 'zeros and ones' or '4' bytes. For example, a maps to 97 and when we store that number it's just the number and so that's way rune is an alias for int32.

The reason rune is an alias for int32 is because we see that with coding schemes such as belowĮach character maps to some number and so it's the number that we are storing.

Now a rune is also an alias for int32.Uh What? It's a character from any alphabet from any language from anywhere in the world.Ī string is different than a rune. I have tried to keep my language simple so that a layman understands rune.
