Documentation
¶
Overview ¶
Package jfather is a JSON parser and decoder that provides metadata about the parsed JSON.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Kind ¶
type Kind uint8
Kind represents the type of a node.
const ( // KindUnknown represents an unknown kind. KindUnknown Kind = iota // KindNull represents a null value. KindNull // KindNumber represents a number value. KindNumber // KindString represents a string value. KindString // KindBoolean represents a boolean value. KindBoolean // KindArray represents an array value. KindArray // KindObject represents an object value. KindObject )
type PeekReader ¶
type PeekReader struct {
// contains filtered or unexported fields
}
PeekReader is a reader that allows peeking at the next rune.
func NewPeekReader ¶
func NewPeekReader(reader io.Reader) *PeekReader
NewPeekReader returns a new PeekReader.
func (*PeekReader) Peek ¶
func (r *PeekReader) Peek() (rune, error)
Peek returns the next rune without advancing the reader.
type Position ¶
Position represents a position in the source code. Note that both lines and columns are 1-indexed.
type Unmarshaler ¶ added in v0.0.8
Unmarshaler is an interface that can be implemented by types that can unmarshal a JSON description of themselves.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.