Go theorytheory 0/50 · 0%
Fundamentals · easy

9. Strings, Runes and Bytes

Immutable UTF-8 byte sequences.

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.

Check your understanding

  1. 1. Ranging over a string yields…

  2. 2. Efficient concatenation uses…