Documentation ¶
Index ¶
- type Buffer
- func (b *Buffer) AppendBool(v bool)
- func (b *Buffer) AppendByte(v byte)
- func (b *Buffer) AppendBytes(v []byte)
- func (b *Buffer) AppendFloat(f float64)
- func (b *Buffer) AppendInt(i int64)
- func (b *Buffer) AppendRune(r rune)
- func (b *Buffer) AppendString(s string)
- func (b *Buffer) AppendTime(t time.Time, layout string)
- func (b *Buffer) AppendUint(i uint64)
- func (b *Buffer) Bytes() []byte
- func (b *Buffer) BytesCopy() []byte
- func (b *Buffer) Free()
- func (b *Buffer) Reset()
- func (b *Buffer) String() string
- func (b *Buffer) Write(bs []byte) (int, error)
- type Pool
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
}
func (*Buffer) AppendBool ¶
AppendBool will append a bool into buffer.
true => "true" false => "false"
func (*Buffer) AppendByte ¶
AppendByte will append a byte into buffer.
func (*Buffer) AppendBytes ¶
AppendBytes will append an bytes slice into buffer.
func (*Buffer) AppendFloat ¶
AppendFloat will append a float64 into buffer.
func (*Buffer) AppendRune ¶
AppendRune will append a rune into buffer.
func (*Buffer) AppendString ¶
AppendString will append a string into buffer.
func (*Buffer) AppendTime ¶
AppendTime will append time with input layout.
func (*Buffer) AppendUint ¶
AppendUint will append a uint64 into buffer.
func (*Buffer) Free ¶
func (b *Buffer) Free()
Free will free underlying bytes and put into pool.
After free, this buffer should not be touched anymore.
Click to show internal directories.
Click to hide internal directories.