jsonlit

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeString

func EscapeString[S Bytes](dst []byte, s S) []byte

func UnescapeString

func UnescapeString[S Bytes](dst []byte, s S) ([]byte, bool)

Types

type Bytes

type Bytes interface {
	~string | []byte
}

type Iter

type Iter[S Bytes] struct {
	// contains filtered or unexported fields
}

func NewIter

func NewIter[S Bytes](s S) *Iter[S]

func (*Iter[S]) EOF

func (it *Iter[S]) EOF() bool

func (*Iter[S]) Next

func (it *Iter[S]) Next() (Kind, S)

func (*Iter[S]) Reset

func (it *Iter[S]) Reset(data S)

type Kind

type Kind int
const (
	Invalid Kind = iota
	Null
	Bool
	Number
	String
	Opener
	Object
	ObjectClose
	Array
	ArrayClose
	Comma
	Colon
	EOF
)

Jump to

Keyboard shortcuts

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