Examples using... bytes.Buffer.Grow()

Recent
Len returns the number of bytes of the unread portion of the buffer; b.Len() == len(b.Bytes()).
Grow grows the buffer's capacity, if necessary, to guarantee space for another n bytes. After Grow(n), at least n bytes can be written to the buffer without another allocation. If n is negative, Grow will panic. If the buffer can't grow it will panic with ErrTooLarge.