Skip to content

Glossary: Data Structures and Algorithms in Go

Immutable

Cannot be changed after it is made. Go strings are immutable, so `code[0] = 'X'` does not compile and `+=` builds a whole new string.

Where the book teaches it

Related terms

strings.BuilderRune