yields bytes, not characters. UTF-8 is a central part of their design. Source - go blog strings package has the following files builder.go compare.go reader.go replace.go search.go strings.go
loop, on each concatenation, a new copy of the string is created and subsequent strings are copied over, character by character this leads to an algorithm complexity of O(n2). In StringBuilder 2, in the for loop, on each concatenation, we are appending the string to a buffer, which is a slight of byte, and return the accumulated string. Copying is greatly reduced.
just by reading the package documentation and implementations. I’ll encourage us to do more of it when we can. Also do some study on ASCII, Unicode, Encodings esp. UTF-8.