Documentation ¶
Index ¶
- type Person
- func (person *Person) DeepCp() *Person
- func (person *Person) Marshal() (dAtA []byte, err error)
- func (v Person) MarshalEasyJSON(w *jwriter.Writer)
- func (v Person) MarshalJSON() ([]byte, error)
- func (person *Person) Unmarshal(dAtA []byte) error
- func (v *Person) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Person) UnmarshalJSON(data []byte) error
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) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Person) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Person) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Person) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.