Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	B_DOUBLE_UNQUOTE  = 0
	B_UNICODE_REPLACE = 1
)
View Source
const (
	F_DOUBLE_UNQUOTE  = 1 << B_DOUBLE_UNQUOTE
	F_UNICODE_REPLACE = 1 << B_UNICODE_REPLACE
)
View Source
const (
	MAX_RECURSE = 65536
)
View Source
const (
	SPACE_MASK = (1 << ' ') | (1 << '\t') | (1 << '\r') | (1 << '\n')
)

Variables

This section is empty.

Functions

func FreeStateMachine

func FreeStateMachine(fsm *StateMachine)

Types

type JsonState

type JsonState struct {
	Vt   ValueType
	Dv   float64
	Iv   int64
	Ep   int
	Dbuf *byte
	Dcap int
}

type ParsingError

type ParsingError uint
const (
	ERR_EOF                ParsingError = 1
	ERR_INVALID_CHAR       ParsingError = 2
	ERR_INVALID_ESCAPE     ParsingError = 3
	ERR_INVALID_UNICODE    ParsingError = 4
	ERR_INTEGER_OVERFLOW   ParsingError = 5
	ERR_INVALID_NUMBER_FMT ParsingError = 6
	ERR_RECURSE_EXCEED_MAX ParsingError = 7
	ERR_FLOAT_INFINITY     ParsingError = 8
)

func (ParsingError) Error

func (self ParsingError) Error() string

func (ParsingError) Message

func (self ParsingError) Message() string

type SearchingError

type SearchingError uint

type StateMachine

type StateMachine struct {
	Sp int
	Vt [MAX_RECURSE]int
}

func NewStateMachine

func NewStateMachine() *StateMachine

type ValueType

type ValueType int
const (
	V_EOF     ValueType = 1
	V_NULL    ValueType = 2
	V_TRUE    ValueType = 3
	V_FALSE   ValueType = 4
	V_ARRAY   ValueType = 5
	V_OBJECT  ValueType = 6
	V_STRING  ValueType = 7
	V_DOUBLE  ValueType = 8
	V_INTEGER ValueType = 9

	V_MAX ValueType
)

Jump to

Keyboard shortcuts

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