jbdec

package module
v0.0.0-...-9d3d689 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: BSD-2-Clause-Views Imports: 2 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	BeginArray     = Type('[')
	BeginObject    = Type('{')
	EndArray       = Type(']')
	EndObject      = Type('}')
	NameSeparator  = Type(':')
	ValueSeparator = Type(',')

	Null  = Type('n')
	True  = Type('t')
	False = Type('f')

	String = Type('S')
	Number = Type('N')

	EOF   = Type(0x00)
	Error = Type(0xFF)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

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

func New

func New(b []byte) *Decoder

func (*Decoder) Next

func (d *Decoder) Next() Token

type Token

type Token struct {
	Type Type
	Pos  int
	// contains filtered or unexported fields
}

func (Token) Bytes

func (t Token) Bytes() []byte

func (Token) Error

func (t Token) Error() error

func (Token) String

func (t Token) String() string

type Type

type Type byte

Jump to

Keyboard shortcuts

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