easyjson

package
v1.159.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 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) MarshalEasyJSON

func (v AStruct) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AStruct) MarshalJSON

func (v AStruct) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AStruct) UnmarshalEasyJSON

func (v *AStruct) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AStruct) UnmarshalJSON

func (v *AStruct) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type BStruct

type BStruct struct {
	Image string
}

func (*BStruct) Equals

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

func (BStruct) MarshalEasyJSON

func (v BStruct) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (BStruct) MarshalJSON

func (v BStruct) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*BStruct) UnmarshalEasyJSON

func (v *BStruct) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BStruct) UnmarshalJSON

func (v *BStruct) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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) MarshalEasyJSON

func (v TestingStruct) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TestingStruct) MarshalJSON

func (v TestingStruct) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TestingStruct) UnmarshalEasyJSON

func (v *TestingStruct) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TestingStruct) UnmarshalJSON

func (v *TestingStruct) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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