jitdec

package
v1.12.6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 28 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.

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