jsontext

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

JSON token kinds

Variables

View Source
var (
	NewEncoder = jsontext.NewEncoder
	NewDecoder = jsontext.NewDecoder
)

APIs

View Source
var (
	String  = jsontext.String
	Int     = jsontext.Int
	Uint    = jsontext.Uint
	Float   = jsontext.Float
	Float32 = jsontext.Float32
	Bool    = jsontext.Bool
)

Token functions

View Source
var (
	ErrDuplicateName = jsontext.ErrDuplicateName
	ErrNonStringName = jsontext.ErrNonStringName
)

Errors define in jsontext

View Source
var (
	Null        = jsontext.Null
	False       = jsontext.False
	True        = jsontext.True
	BeginObject = jsontext.BeginObject
	EndObject   = jsontext.EndObject
	BeginArray  = jsontext.BeginArray
	EndArray    = jsontext.EndArray
)

Tokens

View Source
var (
	AllowDuplicateNames = jsontext.AllowDuplicateNames
)

Options

Functions

func AppendQuote

func AppendQuote[T ~[]byte | ~string](dst []byte, src T) ([]byte, error)

func AppendUnquote

func AppendUnquote[T ~[]byte | ~string](dst []byte, src T) ([]byte, error)

Types

type Decoder

type Decoder = jsontext.Decoder

Types

type Encoder

type Encoder = jsontext.Encoder

Types

type Kind

type Kind = jsontext.Kind

Types

type Pointer

type Pointer = jsontext.Pointer

Types

type SyntacticError

type SyntacticError = jsontext.SyntacticError

Types

type Token

type Token = jsontext.Token

Types

type Value

type Value = jsontext.Value

Types

Jump to

Keyboard shortcuts

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