Closed LimitlessEarth closed 3 years ago
Calling buf.Reset() on a nil bytes.Buffer pointer causes a runtime panic. This gets rid of that panic and better reuses memory.
buf.Reset()
Calling
buf.Reset()
on a nil bytes.Buffer pointer causes a runtime panic. This gets rid of that panic and better reuses memory.