Documentation ¶
Index ¶
- type Writer
- func (p *Writer) BeginDict()
- func (p *Writer) BeginList()
- func (p *Writer) Close() error
- func (p *Writer) EndDict()
- func (p *Writer) EndList()
- func (p *Writer) WriteDictKey(s string)
- func (p *Writer) WriteFloat64(v float64)
- func (p *Writer) WriteInt(n int)
- func (p *Writer) WriteNone()
- func (p *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 is capable writing out the opcodes required by the pickle format. Note that this is a very limited implementation of pickling; just enough for us to implement the opcodes required by graphite /render.
func (*Writer) Close ¶
Close closes the writer, marking the end of the stream and flushing any pending values.
func (*Writer) WriteDictKey ¶
WriteDictKey writes a dictionary key.
func (*Writer) WriteFloat64 ¶
WriteFloat64 writes a float64 value. NaNs are converted in `None`.
func (*Writer) WriteString ¶
WriteString writes a python string.
Click to show internal directories.
Click to hide internal directories.