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

jitdec

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(s *string, i *int, f uint64, val interface{}) error

Decode parses the JSON-encoded data from current position and stores the result in the value pointed to by val.

func Pretouch

func Pretouch(vt reflect.Type, opts ...option.CompileOption) error

Pretouch compiles vt ahead-of-time to avoid JIT compilation on-the-fly, in order to reduce the first-hit latency.

Opts are the compile options, for example, "option.WithCompileRecursiveDepth" is a compile option to set the depth of recursive compile for the nested struct type.

func PretouchMany added in v1.15.1

func PretouchMany(vts []reflect.Type, opts ...option.CompileOption) error

PretouchMany compiles all vts ahead-of-time to avoid JIT compilation on-the-fly, in order to reduce the first-hit latency.

Types

type MismatchQuotedError added in v1.12.6

type MismatchQuotedError struct{}

used to distinguish between MismatchQuoted and other MismatchedTyped errors, see issue #670 and #716

func (*MismatchQuotedError) Error added in v1.12.6

func (*MismatchQuotedError) Error() string

type MismatchTypeError

type MismatchTypeError = errors.MismatchTypeError

type SyntaxError

type SyntaxError = errors.SyntaxError

Jump to

Keyboard shortcuts

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