json

package
v0.2.2-dep Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeArrayBegin

func EncodeArrayBegin(buf []byte) []byte

func EncodeArrayComma

func EncodeArrayComma(buf []byte) []byte

func EncodeArrayEnd

func EncodeArrayEnd(buf []byte) []byte

func EncodeBaniry

func EncodeBaniry(buf []byte, val []byte) []byte

func EncodeBase64

func EncodeBase64(buf []byte, val []byte) []byte

func EncodeBool

func EncodeBool(buf []byte, val bool) []byte

func EncodeEmptyArray

func EncodeEmptyArray(buf []byte) []byte

func EncodeEmptyObject

func EncodeEmptyObject(buf []byte) []byte

func EncodeFloat64

func EncodeFloat64(buf []byte, val float64) []byte

func EncodeInt64

func EncodeInt64(buf []byte, val int64) []byte

func EncodeNull

func EncodeNull(buf []byte) []byte

func EncodeObjectBegin

func EncodeObjectBegin(buf []byte) []byte

func EncodeObjectColon

func EncodeObjectColon(buf []byte) []byte

func EncodeObjectComma

func EncodeObjectComma(buf []byte) []byte

func EncodeObjectEnd

func EncodeObjectEnd(buf []byte) []byte

func EncodeString

func EncodeString(buf []byte, val string) []byte

func IsSpace

func IsSpace(c byte) bool

func NoQuote

func NoQuote(buf *[]byte, val string)

NoQuote only escape inner '\' and '"' of one string, but it does add quotes besides string.

func SkipBlank

func SkipBlank(src string, pos int) int

Types

type SyntaxError

type SyntaxError struct {
	Pos  int
	Src  string
	Code types.ParsingError
	Msg  string
}

func (SyntaxError) Description

func (self SyntaxError) Description() string

func (SyntaxError) Error

func (self SyntaxError) Error() string

func (SyntaxError) Locate

func (self SyntaxError) Locate() string

func (SyntaxError) Message

func (self SyntaxError) Message() string

Jump to

Keyboard shortcuts

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