Documentation ¶
Index ¶
- Variables
- func FastjsonArrayInt(j []byte) ([]int, error)
- func FastjsonArrayString(j []byte) ([]string, error)
- func FastjsonPtrInt(j []byte) (*int, error)
- func GJSONAny(j []byte) (any, error)
- func GJSONArrayBool2D(j []byte) ([][]bool, error)
- func GJSONArrayInt(j []byte) ([]int, error)
- func GJSONArrayString(j []byte) ([]string, error)
- func GJSONMapStringString(j []byte) (map[string]string, error)
- func GJSONPtrInt(j []byte) (*int, error)
- func JscanAny(t *jscan.Tokenizer[[]byte], str []byte) (s any, err error)
- func JscanArrayString(t *jscan.Tokenizer[[]byte], str []byte) (s []string, err error)
- func JscanBoolMatrix(t *jscan.Tokenizer[[]byte], str []byte) (s [][]bool, err error)
- func JscanIntSlice(t *jscan.Tokenizer[[]byte], str []byte) (s []int, err error)
- func JscanMapStringString(t *jscan.Tokenizer[[]byte], str []byte) (m map[string]string, err error)
- func JscanPtrInt(t *jscan.Tokenizer[[]byte], str []byte) (s *int, err error)
- type Any
- type BoolMatrix
- type IntArray
- type MapStringString
- type Struct3
- type StructVector3D
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalid = errors.New("invalid")
Functions ¶
func FastjsonArrayInt ¶
func FastjsonArrayString ¶
func FastjsonPtrInt ¶
func GJSONArrayBool2D ¶
func GJSONArrayInt ¶
func GJSONArrayString ¶
func GJSONPtrInt ¶
func JscanArrayString ¶
func JscanBoolMatrix ¶
func JscanIntSlice ¶
func JscanMapStringString ¶
Types ¶
type BoolMatrix ¶
type BoolMatrix struct {
Data [][]bool `json:"data"`
}
type MapStringString ¶
type Struct3 ¶
type Struct3 struct { Name string `json:"name"` Number int `json:"number"` Tags []string `json:"tags"` }
func FastjsonStruct3 ¶
func GJSONStruct3 ¶
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)
Click to show internal directories.
Click to hide internal directories.