Documentation ¶ Overview ¶ Package buffer provides a pool-allocated byte buffer. Index ¶ type Buffer func New() *Buffer func (b *Buffer) Free() func (b *Buffer) Len() int func (b *Buffer) Reset() func (b *Buffer) SetLen(n int) func (b *Buffer) String() string func (b *Buffer) Write(p []byte) (int, error) func (b *Buffer) WriteByte(c byte) error func (b *Buffer) WriteString(s string) (int, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Buffer ¶ type Buffer []byte buffer adapted from go/src/fmt/print.go func New ¶ func New() *Buffer func (*Buffer) Free ¶ func (b *Buffer) Free() func (*Buffer) Len ¶ added in v1.22.0 func (b *Buffer) Len() int func (*Buffer) Reset ¶ func (b *Buffer) Reset() func (*Buffer) SetLen ¶ added in v1.22.0 func (b *Buffer) SetLen(n int) func (*Buffer) String ¶ func (b *Buffer) String() string func (*Buffer) Write ¶ func (b *Buffer) Write(p []byte) (int, error) func (*Buffer) WriteByte ¶ func (b *Buffer) WriteByte(c byte) error func (*Buffer) WriteString ¶ func (b *Buffer) WriteString(s string) (int, error) Source Files ¶ View all Source files buffer.go Click to show internal directories. Click to hide internal directories.