ffjsongen

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Any

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

func (*Any) MarshalJSON

func (j *Any) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*Any) MarshalJSONBuf

func (j *Any) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*Any) UnmarshalJSON

func (j *Any) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*Any) UnmarshalJSONFFLexer

func (j *Any) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type BoolMatrix

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

func (*BoolMatrix) MarshalJSON

func (j *BoolMatrix) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*BoolMatrix) MarshalJSONBuf

func (j *BoolMatrix) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*BoolMatrix) UnmarshalJSON

func (j *BoolMatrix) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*BoolMatrix) UnmarshalJSONFFLexer

func (j *BoolMatrix) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type IntArray

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

func (*IntArray) MarshalJSON

func (j *IntArray) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*IntArray) MarshalJSONBuf

func (j *IntArray) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*IntArray) UnmarshalJSON

func (j *IntArray) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*IntArray) UnmarshalJSONFFLexer

func (j *IntArray) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type MapIntMapStringStruct3

type MapIntMapStringStruct3 struct {
	// Can't use Struct3 because it fails the code generator
	Data map[int]map[string]struct {
		Name   string   `json:"name"`
		Number int      `json:"number"`
		Tags   []string `json:"tags"`
	} `json:"data"`
}

func (*MapIntMapStringStruct3) MarshalJSON

func (j *MapIntMapStringStruct3) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*MapIntMapStringStruct3) MarshalJSONBuf

func (j *MapIntMapStringStruct3) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*MapIntMapStringStruct3) UnmarshalJSON

func (j *MapIntMapStringStruct3) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*MapIntMapStringStruct3) UnmarshalJSONFFLexer

func (j *MapIntMapStringStruct3) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type MapStringString

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

func (*MapStringString) MarshalJSON

func (j *MapStringString) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*MapStringString) MarshalJSONBuf

func (j *MapStringString) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*MapStringString) UnmarshalJSON

func (j *MapStringString) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*MapStringString) UnmarshalJSONFFLexer

func (j *MapStringString) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type PtrInt

type PtrInt struct {
	Data *int `json:"data"`
}

func (*PtrInt) MarshalJSON

func (j *PtrInt) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*PtrInt) MarshalJSONBuf

func (j *PtrInt) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*PtrInt) UnmarshalJSON

func (j *PtrInt) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*PtrInt) UnmarshalJSONFFLexer

func (j *PtrInt) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type StringArray

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

func (*StringArray) MarshalJSON

func (j *StringArray) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*StringArray) MarshalJSONBuf

func (j *StringArray) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*StringArray) UnmarshalJSON

func (j *StringArray) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*StringArray) UnmarshalJSONFFLexer

func (j *StringArray) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type Struct3

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

func (*Struct3) MarshalJSON

func (j *Struct3) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*Struct3) MarshalJSONBuf

func (j *Struct3) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*Struct3) UnmarshalJSON

func (j *Struct3) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*Struct3) UnmarshalJSONFFLexer

func (j *Struct3) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type StructVector3D

type StructVector3D struct{ X, Y, Z float64 }

func (*StructVector3D) MarshalJSON

func (j *StructVector3D) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*StructVector3D) MarshalJSONBuf

func (j *StructVector3D) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*StructVector3D) UnmarshalJSON

func (j *StructVector3D) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*StructVector3D) UnmarshalJSONFFLexer

func (j *StructVector3D) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

Jump to

Keyboard shortcuts

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