Versions in this module Expand all Collapse all v0 v0.0.2 Mar 17, 2022 v0.0.1 Nov 8, 2021 Changes in this version + func GuessJSONStream(r io.Reader, size int) (io.Reader, []byte, bool) + func IsJSONBuffer(buf []byte) bool + func NewDocumentDecoder(r io.ReadCloser) io.ReadCloser + func ToJSON(data []byte) ([]byte, error) + func Unmarshal(data []byte, v interface{}) error + type JSONSyntaxError struct + Err error + Offset int64 + func (e JSONSyntaxError) Error() string + type LineReader struct + func (r *LineReader) Read() ([]byte, error) + type Reader interface + Read func() ([]byte, error) + type YAMLDecoder struct + func (d *YAMLDecoder) Close() error + func (d *YAMLDecoder) Read(data []byte) (n int, err error) + type YAMLOrJSONDecoder struct + func NewYAMLOrJSONDecoder(r io.Reader, bufferSize int) *YAMLOrJSONDecoder + func (d *YAMLOrJSONDecoder) Decode(into interface{}) error + type YAMLReader struct + func NewYAMLReader(r *bufio.Reader) *YAMLReader + func (r *YAMLReader) Read() ([]byte, error) + type YAMLSyntaxError struct + func (e YAMLSyntaxError) Error() string + type YAMLToJSONDecoder struct + func NewYAMLToJSONDecoder(r io.Reader) *YAMLToJSONDecoder + func (d *YAMLToJSONDecoder) Decode(into interface{}) error