Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeNil = iota TypeBool TypeInt TypeFloat TypeString TypeSlice TypeArray TypeObject )
supported list of reader types.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder represents decoders for streaming data.
func NewDecoder ¶
NewDecoder creates a new instance of Decoder.
type DecoderProvider ¶
type DecoderProvider interface { // Next implements iterator pattern and return data set by set. Next() (map[string]interface{}, error) // Decode decodes all the data stream at once. Decode() (map[string]interface{}, error) }
DecoderProvider provides an interface to work with stream decoder.
Click to show internal directories.
Click to hide internal directories.