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.
Glossary: Data Structures and Algorithms in Go
Cannot be changed after it is made. Go strings are immutable, so `code[0] = 'X'` does not compile and `+=` builds a whole new string.