easyjson

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Person

type Person struct {
	Name     string `json:"name,omitempty" idx:"normal"`
	Phone    string `json:"phone,omitempty" idx:"unique"`
	Age      int32  `json:"age,omitempty" idx:"normal"`
	BirthDay int32  `json:"birthDay,omitempty"`
	Gender   uint8  `json:"gender,omitempty"`
}

func (*Person) DeepCp

func (person *Person) DeepCp() *Person

func (*Person) Marshal

func (person *Person) Marshal() (dAtA []byte, err error)

func (Person) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Person) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Person) Unmarshal

func (person *Person) Unmarshal(dAtA []byte) error

func (*Person) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Person) UnmarshalJSON

func (v *Person) 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