Go

Go

Made by DeepSource

Prefer WriteByte over WriteRune for byte literals GO-P4005

Performance
Minor
Autofix

It 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.

Bad practice

var b bytes.Buffer
b.WriteRune('
')

Recommended

var b bytes.Buffer
b.WriteByte('
')