We examine the string model in Go as sequences of bytes in
UTF-8: how
len, indexing, and
range differ, why
byte is not a “character”, and
rune is not always “what the user sees”. Then we build practical input normalization at the boundary:
strings.TrimSpace,
strings.Fields,
strings.Join, case handling with
strings.ToLower, and comparison with
strings.EqualFold. At the end, we cover command parsing, search (
strings.Contains), string building with
strings.Builder, and debugging strings by printing them with
%q.