encode

package
v0.0.0-...-907cf85 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Student

type Student struct {
	BirthDay time.Time
	Phone    string
	Siblings int
	Spouse   bool
	Money    float64
	Tags     map[string]string
	Payload  []byte
	Stu      *Student1
	//Spouse   bool
	//Money    float64
	//Tags     map[string]string
	Aliases []string
	Name    string
	Age     uint8
	Address []string
	Data    string
	//Payload  []byte
	Ssid []uint32
}

func GetStu

func GetStu() *Student

func (*Student) DecodeMsg

func (z *Student) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Student) EncodeMsg

func (z *Student) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

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

func (z *Student) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Student) Msgsize

func (z *Student) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

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

func (*Student) UnmarshalMsg

func (z *Student) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Student1

type Student1 struct {
	Name    string
	Age     uint8
	Address []string
}

func (*Student1) DecodeMsg

func (z *Student1) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Student1) EncodeMsg

func (z *Student1) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (Student1) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Student1) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Student1) MarshalMsg

func (z *Student1) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Student1) Msgsize

func (z *Student1) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Student1) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Student1) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (*Student1) UnmarshalMsg

func (z *Student1) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

Jump to

Keyboard shortcuts

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