Skip to content

Simplify bytes.Buffer usage

Niels Möller requested to merge simplify-Buffer-usage into main

Use NewBufferString and Buffer.String, to avoid explicit conversion between []byte and string. Short-circuit the wrapping with b = io.ReadAll(body); ... FromASCII(bytes.NewBuffer(b)) by passing the body directly to the appropriate parsing function.

Merge request reports