jsonitere

package
v0.197.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

package jsonitere wraps json-iterator/go's Iterator methods with error returns so linting can catch unchecked errors. The underlying iterator's Error property is returned and not reset. See json-iterator/go for method documentation and additional methods that can be added to this library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iterator

type Iterator struct {
	// contains filtered or unexported fields
}

func NewIterator

func NewIterator(i *j.Iterator) *Iterator

func (*Iterator) Read

func (iter *Iterator) Read() (interface{}, error)

func (*Iterator) ReadAny

func (iter *Iterator) ReadAny() (j.Any, error)

func (*Iterator) ReadArray

func (iter *Iterator) ReadArray() (bool, error)

func (*Iterator) ReadBool

func (iter *Iterator) ReadBool() (bool, error)

func (*Iterator) ReadFloat64

func (iter *Iterator) ReadFloat64() (float64, error)

func (*Iterator) ReadInt8

func (iter *Iterator) ReadInt8() (int8, error)

func (*Iterator) ReadNil

func (iter *Iterator) ReadNil() (bool, error)

func (*Iterator) ReadObject

func (iter *Iterator) ReadObject() (string, error)

func (*Iterator) ReadString

func (iter *Iterator) ReadString() (string, error)

func (*Iterator) ReadUint64

func (iter *Iterator) ReadUint64() (uint64, error)

func (*Iterator) ReadUint64Pointer

func (iter *Iterator) ReadUint64Pointer() (*uint64, error)

func (*Iterator) ReadVal

func (iter *Iterator) ReadVal(obj interface{}) error

func (*Iterator) ReportError

func (iter *Iterator) ReportError(op, msg string) error

func (*Iterator) Skip

func (iter *Iterator) Skip() error

func (*Iterator) WhatIsNext

func (iter *Iterator) WhatIsNext() (j.ValueType, error)

Jump to

Keyboard shortcuts

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