ffjson

package
v1.158.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AStruct

type AStruct struct {
	Number        int64
	Height        int64
	AnotherStruct BStruct
}

func (*AStruct) Equals

func (s *AStruct) Equals(other any) bool

func (*AStruct) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AStruct) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (*AStruct) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AStruct) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type BStruct

type BStruct struct {
	Image string
}

func (*BStruct) Equals

func (s *BStruct) Equals(other any) bool

func (*BStruct) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*BStruct) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (*BStruct) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*BStruct) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type TestingStruct

type TestingStruct struct {
	Int      int
	Int8     int8
	Int16    int16
	Int32    int32
	Int64    int64
	String   string
	Bool     bool
	Duration time.Duration
	SString  []string
	SInt     []int
	SInt8    []int8
	SInt16   []int16
	SInt32   []int32
	SInt64   []int64
	SFloat32 []float32
	SFloat64 []float64
	SBool    []bool
	Struct   AStruct
}

func (*TestingStruct) Equals

func (s *TestingStruct) Equals(other any) bool

func (*TestingStruct) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*TestingStruct) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (*TestingStruct) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*TestingStruct) UnmarshalJSONFFLexer

func (j *TestingStruct) 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