a

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInput

func NewInput(bytes []byte) (parse.Parse, error)

NewInput constructs a new input from bytes and validate the fields

Types

type Input

type Input struct {
	Id      int     `json:"id" validate:"required"`
	Name    string  `json:"name" validate:"required"`
	Country string  `json:"country" validate:"required"`
	Age     int     `json:"age" validate:"required"`
	Weight  float64 `json:"weight" validate:"required"`
	Height  float64 `json:"height" validate:"required"`
}

Input represents input format A

func (Input) Parse

func (i Input) Parse() (output.Output, error)

Parse converts Input to an Output

Jump to

Keyboard shortcuts

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