bench

package
v0.0.0-...-5ddd6bb Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("invalid")

Functions

func FastjsonArrayInt

func FastjsonArrayInt(j []byte) ([]int, error)

func FastjsonArrayString

func FastjsonArrayString(j []byte) ([]string, error)

func FastjsonPtrInt

func FastjsonPtrInt(j []byte) (*int, error)

func GJSONAny

func GJSONAny(j []byte) (any, error)

func GJSONArrayBool2D

func GJSONArrayBool2D(j []byte) ([][]bool, error)

func GJSONArrayInt

func GJSONArrayInt(j []byte) ([]int, error)

func GJSONArrayString

func GJSONArrayString(j []byte) ([]string, error)

func GJSONMapStringString

func GJSONMapStringString(j []byte) (map[string]string, error)

func GJSONPtrInt

func GJSONPtrInt(j []byte) (*int, error)

func JscanAny

func JscanAny(t *jscan.Tokenizer[[]byte], str []byte) (s any, err error)

func JscanArrayString

func JscanArrayString(
	t *jscan.Tokenizer[[]byte], str []byte,
) (s []string, err error)

func JscanBoolMatrix

func JscanBoolMatrix(t *jscan.Tokenizer[[]byte], str []byte) (s [][]bool, err error)

func JscanIntSlice

func JscanIntSlice(t *jscan.Tokenizer[[]byte], str []byte) (s []int, err error)

func JscanMapStringString

func JscanMapStringString(
	t *jscan.Tokenizer[[]byte], str []byte,
) (m map[string]string, err error)

func JscanPtrInt

func JscanPtrInt(t *jscan.Tokenizer[[]byte], str []byte) (s *int, err error)

Types

type Any

type Any struct {
	Data any `json:"data"`
}

type BoolMatrix

type BoolMatrix struct {
	Data [][]bool `json:"data"`
}

type IntArray

type IntArray struct {
	Data []int `json:"data"`
}

type MapStringString

type MapStringString struct {
	Data map[string]string `json:"data"`
}

type Struct3

type Struct3 struct {
	Name   string   `json:"name"`
	Number int      `json:"number"`
	Tags   []string `json:"tags"`
}

func FastjsonStruct3

func FastjsonStruct3(j []byte) (s Struct3, err error)

func GJSONStruct3

func GJSONStruct3(j []byte) (s Struct3, err error)

func JscanStruct3

func JscanStruct3(t *jscan.Tokenizer[[]byte], src []byte) (s Struct3, err error)

type StructVector3D

type StructVector3D struct{ X, Y, Z float64 }

func FastjsonStructVector3D

func FastjsonStructVector3D(j []byte) (s StructVector3D, err error)

func GJSONStructVector3D

func GJSONStructVector3D(j []byte) (s StructVector3D, err error)

func JscanStructVector3D

func JscanStructVector3D(
	t *jscan.Tokenizer[[]byte], src []byte,
) (s StructVector3D, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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