WriteByte
over WriteRune
for byte literals GO-P4005It is recommended to use WriteByte
instead of WriteRune
for writing byte
literals. WriteRune
appends the UTF-8
encoding of unicode code point to the
buffer.
var b bytes.Buffer
b.WriteRune('
')
var b bytes.Buffer
b.WriteByte('
')