Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer is similar to a strings.Builder, but is pooled and reusable. To create a Buffer use `New()` and when work its done call Buffer.Release()
func (*Buffer) Cap ¶
Cap returns the capacity of the builder's underlying byte slice. It is the total space allocated for the string being built and includes any bytes already written.
func (*Buffer) Release ¶
func (b *Buffer) Release()
Release releases the buffer making it available for reutilization
func (*Buffer) Write ¶
Write appends the contents of p to b's buffer. Write always returns len(p), nil.
Click to show internal directories.
Click to hide internal directories.