Strings, Bytes and Runes in Go
Working with text data is the fundamentals of programming, and understanding how Go handles strings is rather recommended. This post covers strings, bytes and runes in Go, explaining their differences and demonstrating elementary work with them. Strings A string is an immutable sequence of bytes which means we can store there whatever we want, but in most cases it is used to represent sequence of human readable characters. In order to define a string literal we use double quotes like this:...