json

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Overview

Package json provides an encoder/decoder for JSON quad formats

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(r io.Reader) *Reader

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) ReadQuad

func (r *Reader) ReadQuad() (quad.Quad, error)

type StreamReader

type StreamReader struct {
	// contains filtered or unexported fields
}

func NewStreamReader

func NewStreamReader(r io.Reader) *StreamReader

func (*StreamReader) Close

func (r *StreamReader) Close() error

func (*StreamReader) ReadQuad

func (r *StreamReader) ReadQuad() (quad.Quad, error)

type StreamWriter

type StreamWriter struct {
	// contains filtered or unexported fields
}

func NewStreamWriter

func NewStreamWriter(w io.Writer) *StreamWriter

func (*StreamWriter) Close

func (w *StreamWriter) Close() error

func (*StreamWriter) WriteQuad

func (w *StreamWriter) WriteQuad(q quad.Quad) error

func (*StreamWriter) WriteQuads

func (w *StreamWriter) WriteQuads(buf []quad.Quad) (int, error)

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(w io.Writer) *Writer

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) WriteQuad

func (w *Writer) WriteQuad(q quad.Quad) error

func (*Writer) WriteQuads

func (w *Writer) WriteQuads(buf []quad.Quad) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL