Strings are immutable byte slices holding UTF-8. Indexing yields a byte; ranging yields runes with their byte offsets. Use strings.Builder to concatenate efficiently and the strings and strconv packages for manipulation and conversion.
← Go theorytheory 0/50 · 0%
Fundamentals · easy
9. Strings, Runes and Bytes
Immutable UTF-8 byte sequences.
Check your understanding
1. Ranging over a string yields…
2. Efficient concatenation uses…