7 ms·
instead of this: t.Buf = []byte{} you can just do: t.Buf = nil
by 38 1y ago
instead of this:
t.Buf = []byte{}
you can just do:
t.Buf = nil
- rsc 1y agoThose are semantically different (one is nil and one is not) but neither allocates.