Documentation
¶
Index ¶
- type Writer
- func (w *Writer) Array(key string, f func())
- func (w *Writer) ArrayObject(f func())
- func (w *Writer) ArrayValues(key string, values interface{})
- func (w *Writer) Key(key string)
- func (w *Writer) KeyInt(key string, value int)
- func (w *Writer) KeyString(key string, value string)
- func (w *Writer) KeyValue(key string, value interface{})
- func (w *Writer) Object(key string, f func())
- func (w *Writer) Raw(data []byte)
- func (w *Writer) RootArray(f func())
- func (w *Writer) RootObject(f func())
- func (w *Writer) Separator()
- func (w *Writer) Value(value interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
func (*Writer) ArrayObject ¶
func (w *Writer) ArrayObject(f func())
Star an object within an array (a keyless object)
func (*Writer) ArrayValues ¶
Writes an array with the given array of values (values must be an array or a slice)
func (*Writer) KeyString ¶
writes a key: value where value is a string This is an optimized Write method
func (*Writer) KeyValue ¶
writes a key: value This is the same as calling WriteKey(key) followe by WriteValue(value)
func (*Writer) RootArray ¶
func (w *Writer) RootArray(f func())
Starts the writing process by creating an array. Should only be called once
func (*Writer) RootObject ¶
func (w *Writer) RootObject(f func())
Starts the writing process by creating an object. Should only be called once
Click to show internal directories.
Click to hide internal directories.