serializer

package
v0.0.0-...-afdf7b8 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersonResponse

type PersonResponse struct {
	ID     int64  `json:"id"`
	Name   string `json:"name"`
	Age    int8   `json:"age"`
	Gender string `json:"gender"`
}

type PersonSerializer

type PersonSerializer struct{}

func (PersonSerializer) Serialize

func (s PersonSerializer) Serialize(person model.Person) PersonResponse

Jump to

Keyboard shortcuts

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