Glossary: Data Structures and Algorithms in Go
Rune
Also written: runes, []rune
Go's type for a single character, written in single quotes. Converting a string to `[]rune` gives one value per character, so accented letters reverse correctly.
Glossary: Data Structures and Algorithms in Go
Also written: runes, []rune
Go's type for a single character, written in single quotes. Converting a string to `[]rune` gives one value per character, so accented letters reverse correctly.