bytes.Buffer, I thought you were my friend
Phil Pearl

For a non-constant number of additions, append(byteSlice, str…) is your friend. bytes.Buffer is nice when you need some of the methods it supports. Even better if you allocate the correct size of buffer to start with.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.