Documentation ¶
Index ¶
- type Decoder
- func (dec Decoder) DecodeName() (string, error)
- func (dec Decoder) DecodeNumber() (json.Number, error)
- func (dec Decoder) DecodeString() (*string, error)
- func (dec Decoder) EndComposite() error
- func (dec Decoder) StartArrayComposite() (bool, error)
- func (dec Decoder) StartObjectComposite() (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
Decoder is a json.Decoder wrapper which adds convenience methods for stream decoding.
func (Decoder) DecodeName ¶
DecodeName decodes a token and checks that it is a non-null string
func (Decoder) DecodeNumber ¶
DecodeNumber decodes a token and checks that it is a non-null number
func (Decoder) DecodeString ¶
DecodeString decodes a token and check that it is a string or null. It returns nil if a null was found.
func (Decoder) EndComposite ¶
EndComposite will decode and discard the end of an array or object
func (Decoder) StartArrayComposite ¶
StartArrayComposite decodes the start of a JSON array, i.e. '['
func (Decoder) StartObjectComposite ¶
StartObjectComposite decodes the start of a JSON object, i.e. '{'
Click to show internal directories.
Click to hide internal directories.