Documentation ¶
Index ¶
- type Writer
- func (w *Writer) Flush() error
- func (w *Writer) WriteBool(v bool) error
- func (w *Writer) WriteByte(c byte) error
- func (w *Writer) WriteFloat32(v float32) error
- func (w *Writer) WriteFloat64(v float64) error
- func (w *Writer) WriteInt(v int) error
- func (w *Writer) WriteInt64(v int64) error
- func (w *Writer) WriteMap(v map[string]interface{}) error
- func (w *Writer) WriteNull() error
- func (w *Writer) WriteString(v string) error
- func (w *Writer) WriteUint(v uint) error
- func (w *Writer) WriteUint64(v uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) WriteFloat32 ¶
WriteFloat32 encodes and writes a 32-bit float.
func (*Writer) WriteFloat64 ¶
WriteFloat64 encodes and writes a 64-bit float.
func (*Writer) WriteInt64 ¶
WriteInt64 encodes and writes a 64-bit integer.
func (*Writer) WriteString ¶
WriteString writes a JSON string to the writer. Parts of this function are borrowed from the encoding/json package.
func (*Writer) WriteUint64 ¶
WriteUint encodes and writes an unsigned integer.
Click to show internal directories.
Click to hide internal directories.