output

package
v0.0.0-...-6093358 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output struct {
	Id   int    `json:"id" validate:"required"`
	Name string `json:"name" validate:"required"`
	Age  int    `json:"age" validate:"required"`
	Bmi  string `json:"bmi" validate:"required"`
}

Output defines the output format

func NewOutput

func NewOutput(id int, name string, age int, bmi string) (Output, error)

NewOutput constructs a new Output

func (Output) ToBytes

func (o Output) ToBytes() []byte

ToBytes convert Output to bytes

Jump to

Keyboard shortcuts

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