Documentation
¶
Overview ¶
Package buffer defines logger buffer
Index ¶
- type Bytes
- func (b *Bytes) AppendBool(v bool)
- func (b *Bytes) AppendByte(bs byte)
- func (b *Bytes) AppendBytes(bs []byte)
- func (b *Bytes) AppendFloat(f float64, bitSize int)
- func (b *Bytes) AppendInt(i int64)
- func (b *Bytes) AppendString(s string)
- func (b *Bytes) AppendTime(t time.Time, layout string)
- func (b *Bytes) AppendUint(i uint64)
- func (b *Bytes) Bytes() []byte
- func (b *Bytes) Reset()
- func (b *Bytes) Size() int
- func (b *Bytes) Trim(ch byte)
- func (b *Bytes) WriteTo(w io.Writer) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
Bytes represents buffer bytes
func (*Bytes) AppendBool ¶
AppendBool appends a bool to the underlying buffer.
func (*Bytes) AppendFloat ¶
AppendFloat appends a float to the underlying buffer.
func (*Bytes) AppendTime ¶
AppendTime appends the time formatted using the specified layout.
func (*Bytes) AppendUint ¶
AppendUint appends an unsigned integer to the underlying buffer (assuming base 10).
Click to show internal directories.
Click to hide internal directories.