3 ms·
In Go, `rune` is an alias for `int32` and is used to indicate the value is a Unicode "code point". For characters in the ASCII range, that means it's just a ch
by sjansen 4y ago
In Go, `rune` is an alias for `int32` and is used to indicate the value is a Unicode "code point".
For characters in the ASCII range, that means it's just a character encoded using more bits. If you need to worry about the full Unicode range then it's important to understand Unicode Normalization Forms.
https://go.dev/blog/strings https://go.dev/blog/strings
https://en.wikipedia.org/wiki/Unicode_equivalence https://en.wikipedia.org/wiki/Unicode_equivalence