model

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type School

type School struct {
	Name string `json:"school_name"`
	Addr string `json:"school_addr"`
}

func (School) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (School) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*School) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*School) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Student

type Student struct {
	Id       int       `json:"id"`
	Name     string    `json:"student_name"`
	School   School    `json:"student_school"`
	Birthday time.Time `json:"birthday"`
}

func (Student) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Student) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Student) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Student) UnmarshalJSON

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