
The highest tagged major version is
v2.
package
Version:
v1.5.0
Opens a new window with list of versions in this module.
Published: Oct 21, 2026
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package model holds the pets app's data types, shared by its handlers and
its views.
type NewPet struct {
Name string `json:"name" validate:"required"`
Kind string `json:"kind"`
}
type Pet struct {
ID int `json:"id"`
Name string `json:"name"`
Kind string `json:"kind"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.