Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JSONStream ¶
type JSONStream struct {
// contains filtered or unexported fields
}
JSONStream is a convenience class for streaming json objects to a file (one JSON per line)
func NewJSONStream ¶
func NewJSONStream(fn string) (*JSONStream, error)
NewJSONStream will return a JSON stream encoder
func (*JSONStream) Name ¶
func (s *JSONStream) Name() string
Name returns the underlying filename for the stream
func (*JSONStream) Write ¶
func (s *JSONStream) Write(obj interface{}) error
Write will stream a JSON line to the output stream
Click to show internal directories.
Click to hide internal directories.