Documentation
¶
Index ¶
- type AStruct
- type BStruct
- type TestingStruct
- func (s *TestingStruct) Equals(other any) bool
- func (j *TestingStruct) MarshalJSON() ([]byte, error)
- func (j *TestingStruct) MarshalJSONBuf(buf fflib.EncodingBuffer) error
- func (j *TestingStruct) UnmarshalJSON(input []byte) error
- func (j *TestingStruct) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AStruct ¶
func (*AStruct) MarshalJSON ¶
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 ¶
UnmarshalJSON umarshall json - template of ffjson
func (*AStruct) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type BStruct ¶
type BStruct struct {
Image string
}
func (*BStruct) MarshalJSON ¶
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 ¶
UnmarshalJSON umarshall json - template of ffjson
func (*BStruct) UnmarshalJSONFFLexer ¶
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
Click to show internal directories.
Click to hide internal directories.