Documentation ¶
Index ¶
- type ByteEncoder
- type DiscardEncoder
- type Encoder
- type Encoding
- func (r *Encoding) Clone() *Encoding
- func (r *Encoding) EncodePart(b []byte, w WriteFlusher) (e error)
- func (r *Encoding) ForEach(f func(b byte, r ByteEncoder))
- func (r *Encoding) Index(b []byte) (idx int, e ByteEncoder)
- func (e *Encoding) NewBufferedWriter(w io.Writer) *Encoder
- func (e *Encoding) NewEncoder(w WriteFlusher) *Encoder
- func (r *Encoding) With(b byte, h ByteEncoder) *Encoding
- func (r *Encoding) WithDiscard(b byte) *Encoding
- func (r *Encoding) WithDiscardSet(k string) *Encoding
- func (r *Encoding) WithFlush(b byte) *Encoding
- func (r *Encoding) WithFunc(b byte, h FuncEncoder) *Encoding
- func (r *Encoding) WithJSONEscaped(b ...byte) *Encoding
- func (r *Encoding) WithLineFlush() *Encoding
- func (r *Encoding) WithLiteral(b byte, d []byte) *Encoding
- func (r *Encoding) WithNoANSI() *Encoding
- func (r *Encoding) WithString(b byte, with string) *Encoding
- func (r *Encoding) WithTabWidth(n int) *Encoding
- type FlushEncoder
- type FuncEncoder
- type LiteralEncoder
- type WriteFlusher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteEncoder ¶
type ByteEncoder interface {
Encode(rest []byte, fw WriteFlusher) (cnt []byte, e error)
}
type DiscardEncoder ¶
type DiscardEncoder struct{}
func (DiscardEncoder) Encode ¶
func (r DiscardEncoder) Encode(rest []byte, fw WriteFlusher) (cnt []byte, e error)
type Encoder ¶
type Encoder struct { Encoding *Encoding Writer WriteFlusher }
type Encoding ¶
type Encoding struct {
// contains filtered or unexported fields
}
func NewEncoding ¶
func NewEncoding() *Encoding
func (*Encoding) EncodePart ¶
func (r *Encoding) EncodePart(b []byte, w WriteFlusher) (e error)
func (*Encoding) ForEach ¶
func (r *Encoding) ForEach(f func(b byte, r ByteEncoder))
func (*Encoding) NewEncoder ¶
func (e *Encoding) NewEncoder(w WriteFlusher) *Encoder
func (*Encoding) WithDiscard ¶
func (*Encoding) WithDiscardSet ¶
func (*Encoding) WithJSONEscaped ¶
func (*Encoding) WithLineFlush ¶
func (*Encoding) WithNoANSI ¶
func (*Encoding) WithTabWidth ¶
type FlushEncoder ¶
type FlushEncoder struct{}
func (FlushEncoder) Encode ¶
func (FlushEncoder) Encode(rest []byte, fw WriteFlusher) (cnt []byte, e error)
type FuncEncoder ¶
type FuncEncoder func(rest []byte, fw WriteFlusher) (cnt []byte, e error)
func (FuncEncoder) Encode ¶
func (f FuncEncoder) Encode(rest []byte, fw WriteFlusher) (cnt []byte, e error)
type LiteralEncoder ¶
type LiteralEncoder struct {
Value []byte
}
func (LiteralEncoder) Encode ¶
func (r LiteralEncoder) Encode(rest []byte, fw WriteFlusher) (cnt []byte, e error)
Click to show internal directories.
Click to hide internal directories.