json

package
v0.0.0-...-96f1409 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSourceFromRawSource

func NewSourceFromRawSource(rs pdk.RawSource) pdk.Source

Types

type Source

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

Source is a pdk.Source for reading json data.

func NewSource

func NewSource(r io.Reader) *Source

NewSource gets a new json source which will decode from the given reader.

func (*Source) Record

func (s *Source) Record() (rec interface{}, err error)

Record implements pdk.Source. It returns the next json object that can be decoded from the reader. It is guaranteed to return a map[string]interface{} if there is no error.

Jump to

Keyboard shortcuts

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