proto

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 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 BasicInfo

type BasicInfo struct {
	Name string `json:"name"`
	Age  int    `json:"age"`
}

func (BasicInfo) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (BasicInfo) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*BasicInfo) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BasicInfo) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Employee

type Employee struct {
	Basic BasicInfo `json:"basic"`
	Job   JobInfo   `json:"job"`
}

func (Employee) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Employee) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Employee) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Employee) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type JobInfo

type JobInfo struct {
	Skills []string `json:"skills"`
}

func (JobInfo) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (JobInfo) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*JobInfo) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*JobInfo) UnmarshalJSON

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