Documentation
¶
Overview ¶
Package buffer provides a pool-allocated byte buffer with custom methods.
Index ¶
- type Buffer
- func (b *Buffer) Free()
- func (b *Buffer) Reset()
- func (b *Buffer) String() string
- func (b *Buffer) Write(p []byte) (int, error)
- func (b *Buffer) WriteBool(v bool)
- func (b *Buffer) WriteByte(c byte)
- func (b *Buffer) WriteFloat(v float64) error
- func (b *Buffer) WriteInt(i int64)
- func (b *Buffer) WriteJson(v any) error
- func (b *Buffer) WriteQuoted(s string)
- func (b *Buffer) WriteString(s string)
- func (b *Buffer) WriteText(v encoding.TextMarshaler) error
- func (b *Buffer) WriteUint(i uint64)
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 (*Buffer) WriteFloat ¶
func (*Buffer) WriteQuoted ¶
func (*Buffer) WriteString ¶
Click to show internal directories.
Click to hide internal directories.