Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Go
/
Go fundamentals
When ranging over a UTF-8 string with for index, value := range text, what are index and …
from Go fundamentals
Go 1.27
intermediate
1 min
When ranging over a UTF-8 string with for index, value := range text, what are index and value?
The starting byte index and the decoded rune
The consecutive rune number and a one-byte character
The grapheme-cluster number and a string
Two byte offsets: start and end
Check
Ask AI about this kata
Report an error
previous kata
Spot the bug in port selection
Spot the bug
A new version is available
Reload