Documentation ¶
Index ¶
- type Writer
- func (w *Writer) BeginArray()
- func (w *Writer) BeginObject()
- func (w *Writer) BeginObjectField(name string)
- func (w *Writer) Close() error
- func (w *Writer) EndArray()
- func (w *Writer) EndObject()
- func (w *Writer) Flush() error
- func (w *Writer) WriteBool(b bool)
- func (w *Writer) WriteFloat64(n float64)
- func (w *Writer) WriteInt(n int)
- func (w *Writer) WriteNull()
- func (w *Writer) WriteString(s string)
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
}
A Writer can be used to directly stream JSON results without going through an intermediate object layer.
func (*Writer) BeginObjectField ¶
BeginObjectField begins a new object field with the given name
func (*Writer) WriteFloat64 ¶
WriteFloat64 writes a float value
func (*Writer) WriteString ¶
WriteString writes a string value
Click to show internal directories.
Click to hide internal directories.