Documentation
¶
Index ¶
Constants ¶
View Source
const (
// MinCapIncrease is the minimum amount by which to grow a Buf.
MinCapIncrease = 512
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buf ¶
Buf is a reusable rune buffer.
func (*Buf) Append ¶
Append appends r to b.Buf separated by sep when b.Buf is not already empty.
Append dynamically grows b.Buf as necessary to accommodate r and the separator. Specifically, when b.Buf is not empty, b.Buf will grow by increments of MinCapIncrease.
After a call to Append, b.Len will be len(b.Buf)+len(r)+len(sep) Call Reset to reset the Buf.
func (*Buf) AppendString ¶
AppendString is a utility func wrapping Append.
Click to show internal directories.
Click to hide internal directories.