What does len return for a Go string?
Answer & explanation
Answer: The number of bytes
UTF-8 can use multiple bytes for one rune, and several runes can form one displayed grapheme.
Practice strings with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
Answer: The number of bytes
UTF-8 can use multiple bytes for one rune, and several runes can form one displayed grapheme.