scanner

package
v0.0.0-...-b038733 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any(in []byte, pos int) (int, error)

Any returns the position of the end of the current element that begins at pos; handles any valid json element

func Array

func Array(in []byte, pos int) (int, error)

Array returns the position of the end of the array that begins at the position specified

func AsArray

func AsArray(in []byte, pos int) ([][]byte, error)

AsArray accepts an []byte encoded json array as an input and returns the array's elements

func Boolean

func Boolean(in []byte, pos int) (int, error)

Boolean matches a boolean at the specified position

func FindFrom

func FindFrom(in []byte, pos, from int) ([]byte, error)

FindTo finds the elements of an array between the specified indexes; inclusive

func FindIndex

func FindIndex(in []byte, pos, index int) ([]byte, error)

FindIndex accepts a JSON array and return the value of the element at the specified index

func FindKey

func FindKey(in []byte, pos int, k []byte) ([]byte, error)

FindKey accepts a JSON object and returns the value associated with the key specified

func FindRange

func FindRange(in []byte, pos, from, to int) ([]byte, error)

FindRange finds the elements of an array between the specified indexes; inclusive

func FindTo

func FindTo(in []byte, pos, to int) ([]byte, error)

FindTo finds the elements of an array between the specified indexes; inclusive

func Null

func Null(in []byte, pos int) (int, error)

Null verifies the contents of bytes provided is a null starting as pos

func Number

func Number(in []byte, pos int) (int, error)

Number returns the end position of the number that begins at the specified pos

func Object

func Object(in []byte, pos int) (int, error)

Object returns the position of the end of the object that begins at the specified pos

func String

func String(in []byte, pos int) (int, error)

String returns the position of the string that begins at the specified pos

Types

This section is empty.

Jump to

Keyboard shortcuts

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