Byte, Rune, and String

Our topic for today is to identify these three. In short, byte includes all ASCII characters, while rune is able to represent all UTF-8 encoding characters. Interestingly, the inventor of Golang and UTF-8 are the same person – Ken Tompson, he is also the inventor of Unix. Back to our topic, byte is a basic type, it is the same as int8. // builtin.go // ... // byte is an alias for uint8 and is equivalent to uint8 in all ways....

October 31, 2021