jsonline

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONToDictionary

func JSONToDictionary(jsonline []byte) (model.Dictionary, error)

JSONToDictionary return a model.Dictionary from a jsonline

func NewSink

func NewSink(file io.Writer) model.SinkProcess

NewSink creates a new Sink.

func NewSource

func NewSource(file io.Reader) model.Source

NewSource creates a new Source.

Types

type Sink

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

func (Sink) Open

func (s Sink) Open() error

func (Sink) ProcessDictionary

func (s Sink) ProcessDictionary(dictionary model.Dictionary) error

type Source

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

Source export line to JSON format.

func (*Source) Err

func (s *Source) Err() error

func (*Source) Next

func (s *Source) Next() bool

Next convert next line to model.Dictionary

func (*Source) Open

func (s *Source) Open() error

func (*Source) Value

func (s *Source) Value() model.Dictionary

Jump to

Keyboard shortcuts

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