decoder

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	Data []byte
	Err  error

	Length int
	// contains filtered or unexported fields
}

A Decoder reads and decodes JSON values from an input stream.

func (*Decoder) DecodeBool

func (dec *Decoder) DecodeBool(v *bool) error

func (*Decoder) DecodeString

func (dec *Decoder) DecodeString(v *string) error

type InvalidJSONError

type InvalidJSONError string

InvalidJSONError is a type representing an error returned when Decoding encounters invalid JSON.

func (InvalidJSONError) Error

func (err InvalidJSONError) Error() string

type InvalidUnmarshalError

type InvalidUnmarshalError string

InvalidUnmarshalError is a type representing an error returned when Decoding cannot unmarshal JSON to the receiver type for various reasons.

func (InvalidUnmarshalError) Error

func (err InvalidUnmarshalError) Error() string

Jump to

Keyboard shortcuts

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