model

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package model holds the pets app's data types, shared by its handlers and its views.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewPet

type NewPet struct {
	Name string `json:"name" validate:"required"`
	Kind string `json:"kind"`
}

type Pet

type Pet struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
	Kind string `json:"kind"`
}

Jump to

Keyboard shortcuts

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